Changelog
2.3.0
promise.tap
for adding side effects to a promise chain.MessageChannel
scheduler reduces "time-to-first" handler, in environments that support it.Changelog
2.2.1
when.defer().reject()
bypassing the unhandled rejection monitor. (#166)when/function
, when/callbacks
, and when/node/function
not preserving thisArg
. (#162)promise.yield
. (#164)Changelog
2.2.0
when/monitor/console
.when.promise(resolver)
promise creation API. A lighter alternative to the heavier when.defer()
bindCallback
and liftCallback
in when/node/function
for more integration options with node-style callbacks.Changelog
2.1.0
when.settle
that settles an array of promises, regardless of whether the fulfill or reject.when/guard
generalized concurrency guarding and limitingpromise.inspect
for synchronously getting a snapshot of a promise's state at a particular instant.onFulfilled
, onRejected
, onProgress
handler arguments to when.all
, when.any
, when.some
. Use the returned promise's then()
(or otherwise()
, ensure()
, etc) to register handlers instead.
when.all(array).then(onFulfilled, onRejected)
instead of this: when.all(array, onFulfilled, onRejected)
. The functionality is equivalent.Changelog
2.0.0
when/keys
module with all()
and map()
for object keys/values.promise.ensure
as a better, and safer, replacement for promise.always
. See discussion as to why promise.always
is mistake-prone.
promise.always
lift()
is now the preferred name for what was bind()
in when/function, when/node/function, and when/callbacks.
bind()
in when/function
, when/node/function
, and when/callbacks
. Use lift()
instead.Changelog
1.8.1
deferred.progress
and deferred.resolver.progress
. Use deferred.notify
and deferred.resolver.notify
instead.when.chain
. Use resolver.resolve(promise)
or resolver.resolve(promise.yield)
(see promise.yield
) instead.when/timed
module. Use when/delay
and when/timeout
modules instead.Changelog
1.8.0
Changelog
1.7.1
deferred.then
.