class

Promise::ResolvedPromise(Input)

Inherits Promise::DeferredPromise / Promise / Reference / Object

Constructors

new(value : Input)
Source

Instance methods

get

get the value directly if the promise is resolved

Source
reject(reason)
Source
resolve(value)

defaults for resolved promises

Source
resolved?

Has the promise value been resolved?

Source
then

Callback to be executed once the value is available

Source

Nested types