node-promise icon indicating copy to clipboard operation
node-promise copied to clipboard

Allow external access to finished, isError

Open jschnaitmann opened this issue 12 years ago • 0 comments

Finding out if a promise is already resolved or rejected does not seem to be possible right now, or at least in an unintuitive way. Therefore three methods where added to access the state of the promise: isResolved, isRejeceted and isFinished (either rejected or resolved).

jschnaitmann avatar Aug 28 '13 01:08 jschnaitmann