Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jonkoops
1 day ago
|
parent
|
context
|
favorite
| on:
A better streams API is possible for JavaScript
It avoids the overhead of Promises, so I can imagine that this would be quite useful if you know that blocking the thread is fine for a little while (e.g. in a worker).
help
notnullorvoid
1 day ago
[–]
I mean the APIs like `Stream.pullSync` you could do that with a regular (non-async) iterator/generator.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: