2 ms·
Exactly. If you're relying on coroutines not yielding for your synchronization, you're going to get bitten hard. Use per-coroutine data structures and lock when
by StavrosK 14y ago
Exactly. If you're relying on coroutines not yielding for your synchronization, you're going to get bitten hard. Use per-coroutine data structures and lock when accessing shared structures.
I tend to think about coroutines as threads, never relying on their determinism, as that's not something you can count on, and it's not advertised as one of their features.