Deferred Future
A future whose value of type T
can be set later. Internally, it uses a mutex lock which is locked as soon as the instance is created. Once the value is set, the lock is released. Therefore, any callers of await are blocked until value is set.
Parameters
Constructors
DeferredFuture
Link copied to clipboard
the type of value this future instance holds.
fun DeferredFuture()
Content copied to clipboard
Functions
Properties
isCompleted
Link copied to clipboard
Returns true
if the future has completed and is ready to await.