Class Concurrent.Promise (< ValueType >)

Inheritance graph
Description

Promise to provide a Future value.

Objects of this class are typically kept internal to the code that provides the Future value. The only thing that is directly returned to the user is the return value from future().

See also

Future, future()


Generic ValueType

__generic__ mixed ValueType = mixed

Description

This is the type for the value provided by the inherited Future.


Inherit Future

inherit Future(< ValueType >) : Future


Method create

Concurrent.Promise Concurrent.Promise(void|function(function(ValueType:void), function(mixed:void), __unknown__ ... :void) executor, mixed ... extra)

Description

Creates a new promise, optionally initialised from a traditional callback driven method via executor(success, failure, @extra).

See also

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise