UNPKG

468 BTypeScriptView Raw
1import { AsyncIterableX } from './asynciterablex';
2/**
3 * Propagates the async sequence that reacts first.
4 * @param {AsyncIterable<T>} left First async sequence.
5 * @param {AsyncIterable<T>} right Second async sequence.
6 * @return {AsyncIterable<T>} An async sequence that surfaces either of the given sequences, whichever reacted first.
7 */
8export declare function race<TSource>(left: AsyncIterable<TSource>, right: AsyncIterable<TSource>): AsyncIterableX<TSource>;