Skip to main content


Structured concurrency and effects for JavaScript
Go to Latest
interface Future
implements Promise<T>, Operation<T>
import { type Future } from "";

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.