Skip to main content

batch

Function batch 

Source
pub fn batch<CallbackFn, ReturnValue>(operation: CallbackFn) -> ReturnValue
where CallbackFn: FnOnce() -> ReturnValue,
Expand description

Coalesces multiple signal writes inside operation into a single reactive flush pass.

§Arguments

  • CallbackFn - Closure executing reactive writes.

§Returns

  • ReturnValue - Value returned by operation.