run function

void run(
  1. WorkerInitializer initializer, [
  2. List? command,
  3. SquadronLogger? logger
])

Instantiates a WorkerService via the initializer and installs the service in a platform worker. The command argument is ignored on Web platforms. On native platforms, the command argument must be set to the Isolate's startup parameter.

Implementation

void run(WorkerInitializer initializer,
        [List? command, SquadronLogger? logger]) =>
    bootstrap(initializer, command, logger);