method Channel.fail
Channel.fail(error: E): boolean

Offers a declared failure as an element — the railway, not a rejection.

Parameters

error: E

Return Type

boolean

Usage

import { type Channel } from "lib/stream/stream.ts";