addIsolateInitializerWithParam<P> method

void addIsolateInitializerWithParam<P>(
  1. RunInsideIsolateInitializer<P> init,
  2. P param
)

Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.

Implementation

void addIsolateInitializerWithParam<P>(
    RunInsideIsolateInitializer<P> init, P param) {
  isolateInitializers.add(InitializerWithParam.of<P>(param, init));
}