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

x/effection/mod.ts>Subscription

Structured concurrency and effects for JavaScript
Go to Latest
interface Subscription
Re-export
import { type Subscription } from "https://deno.land/x/effection@3.0.0-beta.3/mod.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, R>>