Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlights: * Suspended tasks no longer hog a thread and idle. Instead their thread ends and they are moved into a suspended vector inside the scheduler itself. * Tasks that start in a delayed state (e.g. forks) now no longer use a thread with a manual delay. Instead they begin their life in suspended state and are picked up by the scheduler tick. * Gut the remainder of the complicated dispatch logic that was leftover from the old async/tokio version of this code. Intermediate result objects (which used to be processed in batch) are gone, and actions are immediately acted on. This should be a lot easier to read now. I believe this paves the way for a more testable, robust future.
- Loading branch information