kriszyp / node-promise

Promise utilities for Node
397 stars 42 forks source link

Allow external access to finished, isError #14

Open jschnaitmann opened 11 years ago

jschnaitmann commented 11 years ago

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).