Pike v8.0 release 1738

Method Concurrent.Promise()->create()


Method create

Concurrent.Promise Concurrent.Promise(void|function(function(mixed:void), function(mixed:void), mixed ... :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