Skip to content

batch

Read as Markdown

batch(callback) runs a synchronous callback and returns its result. Writes are readable immediately, nested batches share the outer batch, and affected consumers are notified at most once when the outer callback exits.

If the callback throws, completed writes remain committed and notifications flush before the callback error is rethrown. Pibbl event dispatches use the same batching boundary automatically.

Related types: Signal and WritableSignal.

Runs a synchronous callback while coalescing signal notifications until the outer batch completes.

batch: <T>(callback: () => T) => T

Related API: batch.

  • callback — Synchronous work whose signal notifications are grouped.

The callback’s return value.

signal

computed

WritableSignal

View source — packages/core/src/lib/signals/graph.ts:367

Read the Authoring, signals, and lifecycle companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.