An object that may eventually be completed with a result value of typeT which may be awaited using blocking methods.
TheAwait object provides methods that allow accessing the result of anAwaitable by blocking the current thread until theAwaitable has been completed or a timeout has occurred.
Await the "completed" state of thisAwaitable.
Await the "completed" state of thisAwaitable.
This method should not be called directly; useAwait.ready instead.
maximum wait time, which may be negative (no waiting is done),Duration.Inf for unbounded waiting, or a finite positive duration
thisAwaitable
IllegalArgumentExceptionifatMost isDuration.Undefined
InterruptedException if the current thread is interrupted while waiting
TimeoutExceptionif after waiting for the specified time thisAwaitable is still not ready
Await and return the result (of typeT) of thisAwaitable.
Await and return the result (of typeT) of thisAwaitable.
This method should not be called directly; useAwait.result instead.
maximum wait time, which may be negative (no waiting is done),Duration.Inf for unbounded waiting, or a finite positive duration
the result value if theAwaitable is completed within the specific maximum wait time
IllegalArgumentExceptionifatMost isDuration.Undefined
InterruptedException if the current thread is interrupted while waiting
TimeoutExceptionif after waiting for the specified time thisAwaitable is still not ready