Skip to main content
The Deno 2 Release Candidate is 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.23.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>