Skip to main content
Module

x/async_channels/src/internal/errors.ts

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Latest
File
/** * The `Error` class used when `get` or `send` are aborted before * completion. */export class AbortedError extends Error { constructor(type: "send" | "get") { super(`${type} aborted`); }}
export class UnreachableError extends Error { constructor() { super("You've reached an unreachable state, congratulations ¯\_(ツ)_/¯"); }}