You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add node 14 to the actions workflow for testing
- Update api extractor and move back to a .json config file
- Update tslint and prettier and fix issues therein
- Update all warnings from api extractor, all external facing types are now exported
BREAKING CHANGE: Renamed some type names that were previously unexpected but were used by exported functions. Fixed some exported type definitions to be more correct. Dropping node 8 and targeting Node 10/ES2018.
@@ -90,8 +90,8 @@ for await (const pokemons of batch(10, getPokemon())) {
90
90
91
91
### buffer
92
92
```ts
93
-
function buffer<T>(size: number, iterable: AsyncIterable<T>): AsyncIterableIterator<T>
94
-
function buffer<T>(size: number, iterable: Iterable<T>): IterableIterator<T>
93
+
function buffer<T>(size: number, iterable: AsyncIterable<T>): AsyncIterable<T>
94
+
function buffer<T>(size: number, iterable: Iterable<T>): AsyncIterable<T>
95
95
```
96
96
Bufferkeepsanumberofobjectsinreserveavailableforimmediatereading. Thisishelpfulwithasynciteratorsasitwillprefetchresultssoyoudon't have to wait for them to load. For sync iterables it will precompute up to `size` values and keep them in reserve. The internal buffer will start to be filled once `.next()` is called for the first time and will continue to fill until the source `iterable` is exhausted or the buffer is full. Errors from the source `iterable` will be raised after all buffered values are yielded.
0 commit comments