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 (48), Dex.Object (2)

class

new (future)

dup_future ()

release ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Delayed
Bases:

Dex.Future

Abstract:

No

Dex.Delayed is a future which will resolve or reject the value of another Dex.Future when 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) –

Return type:

Dex.Future

dup_future()
Returns:

a Dex.Future or None

Return type:

Dex.Future or None

Retrieves the delayed future provided to Dex.Delayed.new().

This function can only return a Dex.Future before Dex.Delayed.release() is called. After that, the delayed future is released and this function will return None.

release()