function teeimport { tee } from "https://dotland.deno.dev/std@0.181.0/async/mod.ts"; tee<T, N extends number = 2>(iterable: AsyncIterable<T>, n?: N): Tuple<AsyncIterable<T>, N>Branches the given async iterable into the n branches. ExamplesExample 1 import { tee } from "https://deno.land/std@0.181.0/async/tee.ts"; const gen = async function* gen() { yield 1; yield 2; yield 3; }; const [branch1, branch2] = tee(gen()); for await (const n of branch1) { console.log(n); // => 1, 2, 3 } for await (const n of branch2) { console.log(n); // => 1, 2, 3 } Type ParametersToptionalN extends number = 2Parametersiterable: AsyncIterable<T>optionaln: N = [UNSUPPORTED]ReturnsTuple<AsyncIterable<T>, N>