MCPcopy Create free account
hub / github.com/denoland/std / add

Method add

async/mux_async_iterator.ts:74–77  ·  view source on GitHub ↗

* Add an async iterable to the stream. * * @param iterable The async iterable to add. * * @example Usage * ```ts * import { MuxAsyncIterator } from "@std/async/mux-async-iterator"; * import { assertEquals } from "@std/assert"; * * async function* gen123(): AsyncIterableIte

(iterable: AsyncIterable<T>)

Source from the content-addressed store, hash-verified

72 * ```
73 */
74 add(iterable: AsyncIterable<T>) {
75 ++this.#iteratorCount;
76 this.#callIteratorNext(iterable[Symbol.asyncIterator]());
77 }
78
79 async #callIteratorNext(
80 iterator: AsyncIterator<T>,

Callers 15

constructorMethod · 0.95
_serializeArgListFunction · 0.45
shuffle_test.tsFile · 0.45
createSignatureBaseFunction · 0.45
parseCacheControlFunction · 0.45
unionFunction · 0.45
deepMergeInternalFunction · 0.45
mergeObjectsFunction · 0.45
distinctByFunction · 0.45
raceWithSignalFunction · 0.45
pooledMapSettledFunction · 0.45

Calls 1

#callIteratorNextMethod · 0.95

Tested by

no test coverage detected