How does one accomplish corountine like protothread in Rust?

Protothreads is an extremely lightweight stackless threads implement by ANSI C .

https://dunkels.com/adam/pt/

Async functions have roughly the same advantage, but have a bonus: full local variables and easy state machines.

1 Like