import * as P from "../../../../Promise/index.js"; import type * as C from "../core.js"; /** * Returns a new channel, which is the same as this one, except it will be interrupted when the * specified promise is completed. If the promise is completed before the underlying channel is * done, then the returned channel will yield the value of the promise. Otherwise, if the * underlying channel finishes first, then the returned channel will yield the value of the * underlying channel. */ export declare function interruptWhenP_(self: C.Channel, promise: P.Promise): C.Channel; /** * Returns a new channel, which is the same as this one, except it will be interrupted when the * specified promise is completed. If the promise is completed before the underlying channel is * done, then the returned channel will yield the value of the promise. Otherwise, if the * underlying channel finishes first, then the returned channel will yield the value of the * underlying channel. * * @ets_data_first interruptWhenP_ */ export declare function interruptWhenP(promise: P.Promise): (self: C.Channel) => C.Channel; //# sourceMappingURL=interruptWhenP.d.ts.map