You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be that my expectations are just wrong, but I was assuming that resolving or rejecting a promise that was already resolved or rejected will throw exception. In any case here are the tests
The behavior is expected; the idea is that promises need to be a uni-directional communication channel for security reasons. For example, a dozen consumers might be given the same resolver so that they can race to provide the resolution, but they should not be able to observe whether they won the race. That's what I heard from Tyler Close or Mark Miller anyway.
Thanks for the cases. I'll have more time to do integration for a while.
It could be that my expectations are just wrong, but I was assuming that resolving or rejecting a promise that was already resolved or rejected will throw exception. In any case here are the tests
http://github.com/kriskowal/q/pull/1#L4R62
http://github.com/kriskowal/q/pull/1#L4R97
In case behavior is expected we can change tests accordingly.
The text was updated successfully, but these errors were encountered: