Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function collectUint8Arrays
import { collectUint8Arrays } from "https://deno.land/std@v0.35.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>