batch<R> static method

R batch<R>(
  1. R callback()
)

Executes callback in a synchronous batch.

Notifications for all variables mutated inside the batch are deferred until the callback completes, ensuring only a single notification per variable.

Implementation

static R batch<R>(R Function() callback) {
  return _LevitReactiveCore.batch(callback);
}