UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

22 lines (20 loc) 668 B
// ets_tracing: off import * as CL from "../../../../Clock/index.mjs"; import * as InterruptWhen from "./interruptWhen.mjs"; /** * Specialized version of interruptWhen which interrupts the evaluation of this stream * after the given duration. */ export function interruptAfter_(self, duration) { return InterruptWhen.interruptWhen_(self, CL.sleep(duration)); } /** * Specialized version of interruptWhen which interrupts the evaluation of this stream * after the given duration. * * @ets_data_first interruptAfter_ */ export function interruptAfter(duration) { return self => interruptAfter_(self, duration); } //# sourceMappingURL=interruptAfter.mjs.map