Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/async_channels/src/mod.ts>Channel#throw

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Go to Latest
method Channel.prototype.throw
Re-export
import { Channel } from "https://deno.land/x/async_channels@v1.0.0-rc5/src/mod.ts";

Logs the error, closes the channel, and returns an empty result.

Parameters

optional
e: unknown