coderaiser / smalltalk

Promise-based Alert, Confirm and Prompt replacement
MIT License
91 stars 20 forks source link

Shouldn't we rewrite API so that value is returned in first resolve? #1

Closed niftylettuce closed 8 years ago

niftylettuce commented 8 years ago

If we're using async/await, it's not so clean to implement this.

niftylettuce commented 8 years ago

For example, if the value is cancelled, we would need to wrap in a try/catch, but you don't reject the promise it seems.