// ets_tracing: off import type * as CS from "../../../../Cause/index.js" import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Transforms the full causes of failures emitted by this stream. */ export function mapErrorCause_( self: C.Stream, f: (c: CS.Cause) => CS.Cause ): C.Stream { return new C.Stream(CH.mapErrorCause_(self.channel, f)) } /** * Transforms the full causes of failures emitted by this stream. * * @ets_data_first mapErrorCause_ */ export function mapErrorCause(f: (c: CS.Cause) => CS.Cause) { return (self: C.Stream) => mapErrorCause_(self, f) }