@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
12 lines • 840 B
TypeScript
import type * as C from "./core.js";
/**
* Runs both sinks in parallel on the input, returning the result or the error from the
* one that finishes first.
*/
export declare function race_<R, R1, InErr, InErr1, In, In1, OutErr, OutErr1, L, L1, Z, Z1>(self: C.Sink<R, InErr, In, OutErr, L, Z>, that: C.Sink<R1, InErr1, In1, OutErr1, L1, Z1>): C.Sink<R1 & R, InErr & InErr1, In & In1, OutErr | OutErr1, L | L1, Z | Z1>;
/**
* Runs both sinks in parallel on the input, returning the result or the error from the
* one that finishes first.
*/
export declare function race<R1, InErr1, In1, OutErr1, L1, Z1>(that: C.Sink<R1, InErr1, In1, OutErr1, L1, Z1>): <R, InErr, In, OutErr, L, Z>(self: C.Sink<R, InErr, In, OutErr, L, Z>) => C.Sink<R1 & R, InErr & InErr1, In & In1, OutErr1 | OutErr, L1 | L, Z1 | Z>;
//# sourceMappingURL=race.d.ts.map