Skip to content

API Strand

kimja edited this page Jul 31, 2026 · 1 revision

🧬 API β€Ί Strand

🧬 Strand - publisher

πŸ“œ Registers a source IObservable<T> into the river.

Any Loom or Weave that listens to T will receive these values.

// Expose a button's click stream as PlayerJumpRequested events
Q += rzeka.Strand(
    this,
    jumpButton.OnClickAsObservable().Select(_ => new PlayerJumpRequested())
);

Strand is meant for root matter emissions (e.g. caused by user input), so circumstances are never attached to what it publishes - see circumstance rules.


See also: Pluck · Loom · 🧬 API overview

Clone this wiki locally