pub fn batch<R, F: FnOnce() -> R>(f: F) -> RExpand description
Execute operations inside a batch. Operations that return opaque types (like JsValue) will be batched and executed together. Operations that return non-opaque types will flush the batch to get the actual result.