A class that is an "inside-out" FunPromise: the resolve and reject functions
from the callback are exposed as properties, and are therefore able to be called by
caller's code.
Note that after the first call to either resolve or reject, the underlying promise
is settled. Any subsequent call to either resolve or reject is guaranteed to be
a no-op.
A class that is an "inside-out"
FunPromise
: theresolve
andreject
functions from the callback are exposed as properties, and are therefore able to be called by caller's code.Note that after the first call to either
resolve
orreject
, the underlying promise is settled. Any subsequent call to eitherresolve
orreject
is guaranteed to be a no-op.