Kills the persistent async isolate while keeping the session alive.
The session can still be used for new inference runs after calling this.
Next runAsync() will create a new isolate.
Note: This only kills the persistent isolate, not one-time isolates.
Performs inference asynchronously.
Uses a persistent isolate that stays alive for reuse across multiple calls.
This is efficient for repeated inference as it avoids isolate creation overhead.
To kill the isolate, call killIsolate() or release().
Default timeout is 5 seconds. Use runAsyncWithTimeout() for custom timeout.
Performs inference asynchronously with a custom timeout.
Uses a persistent isolate that stays alive for reuse.
If the isolate times out, it will be killed and recreated on next use.
Creates a new isolate for a single inference run.
Each call creates a fresh isolate, allowing concurrent inference.
The isolate is automatically killed after the inference completes.
Useful for parallel inference or one-off async operations.
Default timeout is 5 seconds. Use runOnceAsyncWithTimeout() for custom timeout.
Creates a timed isolate for a single inference run.
Each call creates a fresh isolate, allowing concurrent inference.
The isolate will timeout after the specified duration.
The isolate is automatically killed after completion or timeout.
Runs multiple inference operations in parallel using separate isolates.
Each inference runs in its own isolate, allowing true parallel execution.
All isolates are automatically cleaned up after completion.
Returns a list of results in the same order as the input list.