Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

collect

import { collect } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/sinks/index.ts";

Collects all values from the observable into an array.

async function collect<T>(o: Observable<T>): Promise<T[]>;
§
collect<T>(o: Observable<T>): Promise<T[]>
[src]

§Type Parameters

§Parameters

§

Observable to collect from.

§Return Type

§
Promise<T[]>
[src]

Promise that resolves with an array.