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

x/effection/lib/types.ts>Subscription

Structured concurrency and effects for JavaScript
Latest
interface Subscription
import { type Subscription } from "https://deno.land/x/effection@4.0.0-alpha.1/lib/types.ts";

The Effection equivalent of an AsyncIterator

A subscription acts like a stateful queue that provides a sequence of values via the next() method. Normally a subscription is created via a Stream.

Methods

next(): Operation<IteratorResult<T, TDone>>