8 ms·
I wish await in JavaScript could conditionally yield. Instead I end up having to use arounds like if (shouldYield()) await do yield();
by adzm 13d ago
I wish await in JavaScript could conditionally yield. Instead I end up having to use arounds like if (shouldYield()) await do yield();
- baxuz 13d agoThere's an RFC or two to spawn threads so I'm looking forward to that. The current way of workers + messages is tedious as hell.
- silverwind 13d agoIsn't that basically AsyncGenerator?
- adzm 12d agoNot really, that still yields on every invocation