3 ms·
Generators aren't only used in the context of coroutines.
by diarrhea 6y ago
Generators aren't only used in the context of coroutines.
- inopinatus 6y agoThe article misleadingly states “Ruby 3.0 has Fibers”. Not false, but Ruby 2.0 had fibers, they are used for building a variety of cooperative concurrency behaviours, and they go back years.
- DarkWiiPlayer 6y agoBut generators literally are coroutines though