Returns a future that completes after the specified duration has elapsed or if an error is encountered.
Returns a future that completes after the specified duration has elapsed or if an error is encountered.
The amount of time that must pass before the returned future completes.
The execution context to perform wait operations with.
Returns the amount of time that has passed since 12:00 am January 1 1970 GMT.
Attempts to wait for the specified duration, completing after it has elapsed or if an error is encountered.
Attempts to wait for the specified duration, completing after it has elapsed or if an error is encountered.
The amount of time to block the calling thread.
Returns the amount of time that has passed since an arbitrary point in history.
Returns the amount of time that has passed since an arbitrary point in history. The results of this method are only useful when compared against the result of other invocations of this method.
A low-level abstraction over time. This class supports querying the absolute time and the monitoring flow of time as well as waiting for future times both synchronously and asynchronously.