Dex.Delayed¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Dex.Delayed¶
- Bases:
- Abstract:
No
DexDelayedis a future which will resolve or reject the value of another [class`Dex`.Future] when [method`Dex`.Delayed.release] is called.This allows you to gate the resolution of a future which has already resolved or rejected until a later moment.
- classmethod new(future)¶
- Parameters:
future (
Dex.Future) – a [class`Dex`.Future]- Return type:
Creates a new [class`Dex`.Delayed]
- dup_future()¶
- Returns:
a [class`Dex`.Future] or
None- Return type:
Dex.FutureorNone
Retrieves the delayed future provided to [ctor`Dex`.Delayed.new].
This function can only return a [class`Dex`.Future] before [method`Dex`.Delayed.release] is called. After that, the delayed future is released and this function will return
None.
- release()¶
Completes self using the value provided at construction.