Dex.Delayed

g Dex.Delayed Dex.Delayed Dex.Future Dex.Future Dex.Future->Dex.Delayed Dex.Object Dex.Object Dex.Object->Dex.Future

Subclasses:

None

Methods

Inherited:

Dex.Future (51), Dex.Object (2)

class

new (future)

dup_future ()

release ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Delayed
Bases:

Dex.Future

Abstract:

No

DexDelayed is 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:

Dex.Future

Creates a new [class`Dex`.Delayed]

dup_future()
Returns:

a [class`Dex`.Future] or None

Return type:

Dex.Future or None

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.