Batch Operations
Demonstrates batch evaluation and execution — sending multiple requests in a single round-trip to reduce protocol overhead. Both PythonEmbed (single instance) and PythonEmbedPool support batch operations.
Key Points
batchEval()evaluates multiple expressions in one MessagePack framebatchExec()executes multiple statements in one round-trip- Pool batch operations return
CompletableFuture<List<PythonValue>> - Timeout applies to the entire batch, not per-item