Flezha.SDK.Stream (flezha_sdk v0.1.0)

Copy Markdown View Source

A builder-scoped stream handle. Carries the channel it flows from and the chain it is currently appending links to; the links themselves live in the builder's record, so the handle is a cursor and nothing more. Immutable: reusing a handle in two into/output calls fans out, and a handle with no chain yet opens a fresh one. Valid only inside channels/1.

Summary

Types

source()

@type source() :: {:entry, String.t()} | {:node, reference()}

t()

@type t() :: %Flezha.SDK.Stream{
  builder: reference(),
  chain_id: reference() | nil,
  source: source()
}