create static method

  1. @Since.new("3.13")
Isolate create({
  1. String? debugName,
})

Create a new isolate in the current isolate group.

Similar to Dart_CreateIsolateInGroup Dart VM C API.

The isolate has been created, but its event loop is not running.

To start processing isolate's messages:

  • start isolate's event loop synchronously on the current thread by calling Isolate.runEventLoopSync
  • integrate isolate's event loop with an external event loop by registering event callback (Isolate.onEvent) to forward event notifications to an external event loop and then draining pending events (Isolate.handleEvent) from that event loop.

Implementation

@Since("3.13")
external static Isolate create({String? debugName});