variable / @typed/fx

Sink.skipInterrupt

Suppresses failure causes made entirely of interruption reasons.

Package version
2.0.0-beta.7
Category
Failure handling
Since
1.0.0
Member of
Sink

Import

import { Sink } from "@typed/fx";

Access Sink.skipInterrupt through the imported Sink export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export declare const skipInterrupt: <A, E, R>(sink: Sink<A, E, R>) => Sink<A, E, R>;

Why

Some terminal consumers treat expected cancellation as silent completion while still needing typed failures and defects.

Ownership and lifetime

Successes pass through unchanged. A pure interruption Cause invokes no downstream callback; mixed or non-interruption causes are preserved. The adapter does not change fiber ownership or cleanup and acquires no resources.

Examples

import { Effect } from "effect"
import * as Sink from "@typed/fx/Sink"
const quietCancellation = Sink.skipInterrupt(Sink.make(Effect.logError, Effect.log))

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source