import { ContinuationK, Fold } from "@effect/core/stream/Channel/definition/primitives";
/**
 * Fold the channel exposing success and full error cause.
 *
 * @tsplus fluent ets/Channel foldCauseChannel
 */

export function foldCauseChannel_(self, onErr, onSucc) {
  return new Fold(self, new ContinuationK(onSucc, onErr));
}
/**
 * Fold the channel exposing success and full error cause.
 *
 * @tsplus static ets/Channel/Aspects foldCauseChannel
 */

export const foldCauseChannel = (onErr, onSucc) => self => foldCauseChannel_(self, onErr, onSucc);
//# sourceMappingURL=foldCauseChannel.mjs.map