worker_service library

Classes

RunnerFactory
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.
RunnerService
Wraps a Runner and ensures that it's spawned before executing any operations
WorkerServicePlatform
Represents the abstraction between platforms

Properties

currentIsolateName String?
no setter
isMainIsolate bool
no setter

Functions

initializeRunner(RunnerBuilder builder, Runner target) Future
This should be implemented by the platform
spawnRunner(RunnerBuilder factory) Future<Runner>
Spawns a new isolate with any extra processing. It's required to have a top-level spawner method
workerLogEnvironment() → LoggingEnvironment
workerService() WorkerServicePlatform

Typedefs

IsolateFunction<P, R> = FutureOr<R> Function(R input)