Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ThreadPoolScheduler non-blocking await.
Now, if we do an `await` in code being run in the thread pool, and the awaited value(s) are not yet available, we take a continuation. This frees up the thread to process more work from the thread pool. When all of the awaited results are available, or the production of one of them produces an exception, then the resumption of the continuation will be scheduled in the thread pool. This behavior will only happen if you say `use v6.d.PREVIEW`.
- Loading branch information
Showing
1 changed file
with
124 additions
and
2 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