future::resolved()
and future::value()
by discarding the corrupt future. (#37)Fixed #49: promise_all()
previously did not handle NULL
values correctly. (#50))
new_promise_domain
now takes a wrapOnFinally
argument, which can be used to intercept registration of finally()
. Previous versions treated finally
as passing the same callback to then(onFulfilled=..., onRejected=...)
, and ignoring the result; for backward compatibility, promise domains will still treat finally
that way by default (i.e. if wrapOnFinally
is NULL
, then finally
will result in wrapOnFulfilled
and wrapOnRejected
being called, but if wrapOnFinally
is provided then only wrapOnFinally
will be called). (#43)