Skip to content

StreamRun

What IndeRun.stream() returns: the run’s identity, its canonical event sequence, and a cancel hook.

events terminates in exactly one terminal StreamEvent, per the Event Gate’s guarantee, and is single-use — the run is driven once, not restarted per consumer. cancel() is idempotent: repeated or concurrent calls produce exactly one cancelled terminal outcome.

events: AsyncIterable<StreamEvent>


handle: StreamRunHandle

cancel(reason?): void

string

void