Skip to main content

Function: beginBatch()

beginBatch(): void

Defined in: packages/ffi/src/batch.ts:23

Begins a new FFI call batch.

Batching queues multiple FFI calls and executes them together in a single native round-trip, reducing overhead. Batches can be nested.

Returns

void

Example

beginBatch();
widget.setVisible(true);
widget.setSensitive(true);
endBatch(); // Executes both calls in one FFI round-trip

See

  • endBatch for executing batched calls
  • batch for a convenient wrapper