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

x/effection/lib/types.ts

Structured concurrency and effects for JavaScript
Latest
import * as effection from "https://deno.land/x/effection@3.1.0/lib/types.ts";

Interfaces

`Context`` defines a value which is in effect for a given scope which is an (action, resource, call, or spawn).

A value that is both an Operation and Promise.

An Operation in Effection describes an abstract computation. An operation does not do anything on its own. Rather, it only describes the steps it will take when it runs.

A programatic API to interact with an Effection scope from outside of an Operation.

The Effection equivalent of an AsyncIterator

A handle to a concurrently running operation that lets you either use the result of that operation, or shut it down.

Type Aliases

The Effection equivalent of an AsyncIterable.

Unwrap the type of an Operation. Analogous to the built in Awaited type. Yielded<Operation> === T