get

open fun get(timeout: Measure<Time>): T

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

Return

the computed result

Parameters

timeout

the maximum time to wait using WPIUnits

Throws

if the computation was cancelled

if the computation threw an exception

if the current thread was interrupted while waiting

if the wait timed out