Global

Methods

defer(proc) → {Object}

Parameters:
Name Type Description
proc Function

defers process execution

Source:
Returns:

promise

Type
Object

fulfill(value) → {Object}

Parameters:
Name Type Description
value Object

fullfillment value

Source:
Returns:

promise

Type
Object

reject(reason) → {Object}

Parameters:
Name Type Description
reason Object

rejection value

Source:
Returns:

promise

Type
Object

resolved() → {Object}

Source:
Returns:

resolved value

Type
Object

spread(onFulfill, onReject) → {Object}

Parameters:
Name Type Description
onFulfill Function

callback with multiple arguments

onReject Function

errback with multiple arguments

Source:
Returns:

promise

Type
Object

status() → {String}

Source:
Returns:

'pending','fulfilled','rejected'

Type
String

then(onFulfill, onReject) → {Object}

Parameters:
Name Type Description
onFulfill Function

callback

onReject Function

errback

Source:
Returns:

promise

Type
Object

timeout(time, callback) → {Object}

Parameters:
Name Type Description
time Number

timeout value in ms or null to clear timeout

callback Function

timeout function callback

Source:
Throws:
If exceeded timeout
Type
RangeError
Returns:

promise

Type
Object