Skip to main content

ResponseStream

The chunks of one streamed session, as an iterator: each item is a ResponseChunk; iteration ends when the session finishes (a failed session raises RuntimeError where the failure lands in the sequence). wait() returns the final Response. close() stops delivery; the session itself runs to completion.

closed (property)​

True after close().

done (property)​

True once the session has finished (cleanly or not).

session (property)​

The session id.

__init__​

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

close​

closeclose(self) -> None

close(self) -> None

Stop delivery: queued chunks are dropped and iteration ends. The session runs to completion; wait() still returns its Response.

wait​

waitwait(self) -> clika_runtime._core.runtime.Response

wait(self) -> clika_runtime._core.runtime.Response

Block until the session completes; returns its final Response (a failed session raises RuntimeError). Chunks already queued stay readable.