Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/util/async.ts>collectUint8Arrays

A modern runtime for JavaScript and TypeScript.
Go to Latest
function collectUint8Arrays
import { collectUint8Arrays } from "https://deno.land/x/deno@v0.28.0/std/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>