Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.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>