Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oefrha
on Nov 7, 2022
|
parent
|
context
|
favorite
| on:
Why would anyone need JavaScript generator functio...
Async generators should be a very natural interface for many event-based APIs, e.g. WebSocket.onmessage. Unfortunately converting a callback-based API to an async generator is highly nontrivial.
michaelsbradley
on Nov 7, 2022
[–]
Easily done with Ix:
https://github.com/ReactiveX/IxJS/blob/master/docs/asynciter...
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: