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

x/effection/lib/ensure.ts

Structured concurrency and effects for JavaScript
Latest
import * as effection from "https://deno.land/x/effection@4.0.0-alpha.1/lib/ensure.ts";

Functions

Run the given function or operation when the current operation shuts down. This is equivalent to running the function or operation in a finally {} block, but it can help you avoid rightward drift.