Y
Hacker News
new
|
ask
|
show
|
jobs
by
jonkoops
113 days ago
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).
1 comments
notnullorvoid
113 days ago
I mean the APIs like `Stream.pullSync` you could do that with a regular (non-async) iterator/generator.
link