reusee / co

coroutine library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

co

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.

Roadmap

  • I/O waiting. channel polling
  • threaded scheduler
  • prioritized scheduling

About

coroutine library

License:Apache License 2.0


Languages

Language:Go 100.0%