Drive one streamed request to completion over an injected transport.
Yields each event value; returns the done value; throws StreamError on an
error frame. Always unsubscribes (via the generator's finally) so an early
break in the consumer doesn't leak the listener.
signal wires a caller AbortSignal to mid-stream cancellation: when it
fires (or the consumer breaks before a terminal frame), the finally sends a
cancel frame back over transport.cancel so the HOST stops generating — without
it, aborting only stops the app-side iterator while the upstream provider keeps
streaming and BILLING (LLM_AND_AGENTS_SPEC §3.3, R3-224 / adversarial F2).
Drive one streamed request to completion over an injected transport.
Yields each event value; returns the
donevalue; throwsStreamErroron an error frame. Always unsubscribes (via the generator'sfinally) so an earlybreakin the consumer doesn't leak the listener.signalwires a caller AbortSignal to mid-stream cancellation: when it fires (or the consumerbreaks before a terminal frame), thefinallysends acancelframe back overtransport.cancelso the HOST stops generating — without it, aborting only stops the app-side iterator while the upstream provider keeps streaming and BILLING (LLM_AND_AGENTS_SPEC §3.3, R3-224 / adversarial F2).