Skip to main content
Go to Latest
function collectUint8Arrays
import { collectUint8Arrays } from "https://deno.land/std@0.42.0/util/async.ts";

Collects all Uint8Arrays from an AsyncIterable and retuns a single Uint8Array with the concatenated contents of all the collected arrays.

Parameters

it: AsyncIterable<Uint8Array>

Returns

Promise<Uint8Array>