coroutine library
A coroutine library to implement deterministic scheduling of concurrent processes.
Mostly inspired by Rob Pike's recursive state function type in his Lexical Scanning in Go talk.
I use this pattern a lot in the sb library, modeling stream/sink process as recursive functions.
- I/O waiting. channel polling
- threaded scheduler
- prioritized scheduling