Skip to main content
Module

x/effection/lib/main.ts

Structured concurrency and effects for JavaScript
Go to Latest
import * as effection from "https://deno.land/x/effection@3.0.0-beta.3/lib/main.ts";

Functions

Halt process execution immediately and initiate shutdown. If a message is provided, it will be logged to the console after shutdown:

Top-level entry point to programs written in Effection. That means that your program should only call main once, and everything the program does is handled from within main including an orderly shutdown. Unlike run, main automatically prints errors that occurred to the console.