Created
October 28, 2019 21:40
-
-
Save traviskaufman/05cb6a4134861cc7ef3a0e2c32d7dc81 to your computer and use it in GitHub Desktop.
Demystifying RxJS, Part III: Concrete Schedulers
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
const syncScheduler: Scheduler = { | |
schedule(work) { | |
work(); | |
} | |
}; | |
const asyncScheduler: Scheduler = { | |
schedule(work) { | |
setTimeout(work, 0); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment