Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
adzm
14 days ago
|
parent
|
context
|
favorite
| on:
The browser's main thread is expensive
I wish await in JavaScript could conditionally yield. Instead I end up having to use arounds like if (shouldYield()) await do yield();
baxuz
14 days ago
|
next
[–]
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.
silverwind
13 days ago
|
prev
[–]
Isn't that basically AsyncGenerator?
reply
adzm
12 days ago
|
parent
[–]
Not really, that still yields on every invocation
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: