Hyperlinkv0.8.0-beta.28

Cause

Cause.isAsyncFiberErrorconsteffect/Cause.ts:1650
(u: unknown): u is AsyncFiberError

Checks whether an arbitrary value is an AsyncFiberError.

Example (Checking the runtime type)

import { Cause } from "effect"
import type { Fiber } from "effect"

declare const fiber: Fiber.Fiber<unknown, unknown>

const error = new Cause.AsyncFiberError(fiber)
console.log(Cause.isAsyncFiberError(error)) // true
console.log(Cause.isAsyncFiberError("nope")) // false
guards
Source effect/Cause.ts:16501 lines
export const isAsyncFiberError: (u: unknown) => u is AsyncFiberError = effect.isAsyncFiberError