|
|
|
|
|
by epage
2271 days ago
|
|
Coroutines are another interesting way of expressing state machines. They can make certain classes of state machines easier to read because the flow reads like a normal function. So far I've only used the technique once in Python using generators. There were some ergonomic aspects that were less than ideal but serve as one example of why I look forward to generators being added to Rust. |
|
https://rust-lang.github.io/async-book/01_getting_started/04...