addOnIsolateCreated method

void addOnIsolateCreated(
  1. IsolateInitializer init
)

Adds an initializer - this consumes the IsolateRunner and performs some action on it.

This code will be executed in the parent isolate, ie. the isolate that did the spawning.

Implementation

void addOnIsolateCreated(IsolateInitializer init) {
  onIsolateCreated.add(init);
}