GitHub

tx_subscription_ref

API reference for tx_subscription_ref.

TxSubscriptionRef[A]: a TxRef that publishes every value it stores to an unbounded TxPubSub (Effect's TxSubscriptionRef).

changes() subscribes for the current scope: the queue's first value is the current one, then every value stored after it, in commit order. changes_stream() is the same as a Stream, subscribing when it starts. A write publishes in the same transaction, so a transaction that rolls back publishes nothing.

Classes