Skip to content

Commit

Permalink
Dev (#3)
Browse files Browse the repository at this point in the history
* branchAndMerge does not return the input iterator anymore.
Whoever needs the original should pass the (newly added) identity()
operator as the first argument.
+ some style cleanup
  • Loading branch information
mrft authored Jul 12, 2024
1 parent 8ae90a9 commit 24925b7
Show file tree
Hide file tree
Showing 21 changed files with 307 additions and 149 deletions.
4 changes: 2 additions & 2 deletions dist/cjs/interface/itr8ToMultiIterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* In order to support the fact that not all output iterators will be pulled at the same time,
* we need to keep a cache + the position that each iterator is at.
*
* TODO: In order to protect ourselves from 'abandoned' iterators, a timeout could be used
* @todo In order to protect ourselves from 'abandoned' iterators, a timeout could be used
* to clean them up, so the cache can be emptied up to the oldest 'active' iterator.
*
* @category interface/standard
*/
declare function itr8ToMultiIterable<T>(it: Iterator<T> | AsyncIterator<T>): AsyncIterable<T>;
declare function itr8ToMultiIterable<T>(it: Iterator<T> | AsyncIterator<T>): AsyncIterable<T> | Iterable<T>;
export { itr8ToMultiIterable };
102 changes: 55 additions & 47 deletions dist/cjs/interface/itr8ToMultiIterable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/interface/itr8ToMultiIterable.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/cjs/operators/general/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export * from "./branchAndMerge.js";
export * from "./dedup.js";
export * from "./filter.js";
export * from "./flatten.js";
export * from "./groupPer.js";
export * from "./identity.js";
export * from "./intersperse.js";
export * from "./map.js";
export * from "./peek.js";
Expand Down
2 changes: 2 additions & 0 deletions dist/cjs/operators/general/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/operators/general/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/interface/itr8ToMultiIterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* In order to support the fact that not all output iterators will be pulled at the same time,
* we need to keep a cache + the position that each iterator is at.
*
* TODO: In order to protect ourselves from 'abandoned' iterators, a timeout could be used
* @todo In order to protect ourselves from 'abandoned' iterators, a timeout could be used
* to clean them up, so the cache can be emptied up to the oldest 'active' iterator.
*
* @category interface/standard
*/
declare function itr8ToMultiIterable<T>(it: Iterator<T> | AsyncIterator<T>): AsyncIterable<T>;
declare function itr8ToMultiIterable<T>(it: Iterator<T> | AsyncIterator<T>): AsyncIterable<T> | Iterable<T>;
export { itr8ToMultiIterable };
101 changes: 54 additions & 47 deletions dist/interface/itr8ToMultiIterable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 24925b7

Please sign in to comment.