Skip to main content
Module

x/effection/mod.ts>Future

Structured concurrency and effects for JavaScript
Latest
interface Future
implements Promise<T>, Operation<T>
Re-export
import { type Future } from "https://deno.land/x/effection@3.0.3/mod.ts";

A value that is both an Operation and Promise.

Futures are operations that are implicitly associated with an Effection scope and so they can be freely awaited within any async functions. However, they can also be evaluated directly within another operation, so among other things, if the operation resolves synchronously, it will continue within the same tick of the run loop.