pub fn batch<R, F>(f: F) -> Rwhere
F: FnOnce() -> R,Expand 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.