-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix futures would be called on promise destruction causing havoc
When the promise state is destructed the future would be fullfilled. This could even happen sometimes in the wrong thread, or at completly the wrong time. It should be ok for a promise to never be fullfilled. Instead we keep track of fullfillment (`done`) separatelly for immediate chaining.
- Loading branch information
1 parent
5ae6bdc
commit 6846262
Showing
1 changed file
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters