import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/fail";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/timeoutTo";
/**
 * Fails the stream with given cause if it does not produce a value after the
 * specified duration.
 *
 * @tsplus fluent ets/Stream timeoutFail
 */

export function timeoutFail_(self, e, duration, __tsplusTrace) {
  return tsplus_module_2.timeoutTo_(self, duration, () => tsplus_module_1.fail(e, __tsplusTrace), __tsplusTrace);
}
/**
 * Fails the stream with given cause if it does not produce a value after the
 * specified duration.
 *
 * @tsplus static ets/Stream/Aspects timeoutFail
 */

export const timeoutFail = (e, duration, __tsplusTrace) => self => timeoutFail_(self, e, duration, __tsplusTrace);
//# sourceMappingURL=timeoutFail.mjs.map