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

amb

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

Takes in multiple observables but only emits items from the first observable to emit.

function amb<T>(...os: Array<Observable<T>>): Observable<T>;
§
amb<T>(...os: Array<Observable<T>>): Observable<T>
[src]

§Type Parameters

§Parameters

§
...os: Array<Observable<T>> optional
[src]

Observables to race.

§Return Type

§

Observable that emits items from one of the given observables.