Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/effection/lib/main.ts

Structured concurrency and effects for JavaScript
Go to Latest
import * as effection from "https://deno.land/x/effection@4.0.0-alpha.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.