# interrupt

Creates an Fx that immediately interrupts.

## Signatures

```ts
export declare const interrupt: (fiberId?: number | undefined) => import("../Fx.js").Fx<never, never, never>;
```

## Why

A known Effect interruption cause can be represented as an `Fx` branch without
disguising it as a typed failure or defect.

## Ownership and lifetime

Construction is inert. Each run forwards one interruption cause carrying `id` to
the sink, emits no values, and acquires no resources.

## Examples

```ts
import { Effect } from "effect"
import { interrupt, observe } from "@typed/fx/Fx"

const source = interrupt(1)
const program = observe(source, () => Effect.void)
```
