3 ms·
> Coroutines are fun, but in real code please consider using actual threads. Coroutines are lightweight and trivial to synchronize. They are perfect for small
by hgs3 3y ago
> Coroutines are fun, but in real code please consider using actual threads.
Coroutines are lightweight and trivial to synchronize. They are perfect for small bits of incremental computation, like iterators and tokenizers. Maybe you're thinking of green threads?