RunnerFactory class
Contains the initializers necessary to construct a specific type of isolate. Any initializers added to RunnerFactory.global will be applied to all isolates produced by this application.
To construct an isolate Runner
, call the create method, with an optional builder. eg.
final IsolateService runner = RunnerFactory.global.create((builder) => builder
..poolSize = 3
..debugName = "widgetMaker"
..autoclose = true
);
await runner.run(...);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isolateInitializers
→ List<
InitializerWithParam> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addIsolateInitializer(
void init()) → void - Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
-
addIsolateInitializerDeferred<
P> (RunInsideIsolateInitializer< P> init, P param()) → void - Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
-
addIsolateInitializerParam<
P> (RunInsideIsolateInitializer< P> init, P param) → void - Adds an initializer - this is run on each isolate that's spawned, and contains any common setup.
-
create(
[void configure(RunnerBuilder builder)?]) → RunnerService -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onIsolateCreated(
IsolateInitializer init) → void -
Adds an initializer - this consumes the
IsolateRunner
and performs some action on it -
reset(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- global ↔ RunnerFactory
-
getter/setter pair