Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Clean-up and re-working of Promise.
The outside API remains largely the same, except the constructor is now only taking :$scheduler. The main change is that Promise is no longer tied to running code at all. Rather, that's just what the run factory method and then methods set up. Promise.sleep(...) is also mostly delegated to the Scheduler. This makes Promise more focused around its synchronization primitive nature, and puts the other Promise factories on a more even footing.
- Loading branch information
Showing
1 changed file
with
85 additions
and
70 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