Comments (2)
I don't know why they couldn't have come up with better names for these things, they sound far too similar..
from it.
Think I misunderstood the iterable protocol here, and I really do not want to be using AsyncIterator<T>
as an output type (regardless of whether the types of a library will offer to iterate an AsyncIterator<T>
for me). MDN says:
Note: for await...of doesn't work with async iterators that are not async iterables.
i.e. just use an AsyncIterable<T>
as the value type every time. Got it!
Edit: Another thing I didn't understand fully is that an AsyncGenerator<T>
is not just an AsyncIterator<T>
like the Typescript typings kinda imply - it's also (structurally) an AsyncIterable<T>
and an AsyncIterableIterator<T>
(it's both an iterator and an iterable)
from it.
Related Issues (9)
- When publishing these packages, publish built / transpiled JavaScript HOT 1
- it-multipart: silently skips part of the file with diacritics HOT 2
- browser-readablestream-to-it should release reader lock and cancel stream on break HOT 2
- formidable v1 is deprecated HOT 1
- Upgrade it-* dependencies in all packages HOT 1
- it-latest: drop messages w/ backpressure
- Functions with union Promised return types "Promise<void> | void" will fail eslint checks. HOT 1
- fix: does not accept asyncIterable<Uint8Array> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from it.