class

Promise::DeferredPromise(Input)

Inherits Promise / Reference / Object

Constructors

Instance methods

catch

Callback to execute if an error occurs

Source
finally
Source
get

pause the current fiber and wait for the resolution to occur

Source
raw_value
Source
reject(reason)
Source
resolve(value)
Source
resolved?

Has the promise value been resolved?

Source
then(callback : Input -> _, errback : Exception -> _)
Source
then

Callback to be executed once the value is available

Source
then

Used to create a generic promise if all we care about is success or failure

Source
type

Interfaces available to generic types

Source
type_var

A cool hack to grab the promise type

Source

Nested types