logoalt Hacker News

adzmtoday at 9:33 AM1 replyview on HN

I wish await in JavaScript could conditionally yield. Instead I end up having to use arounds like if (shouldYield()) await do yield();


Replies

baxuztoday at 9:37 AM

There'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.