1 | | | import '_impl/xplat/_bootstrapper.dart' |
2 | | | if (dart.library.io) '_impl/native/_bootstrapper.dart' |
3 | | | if (dart.library.html) '_impl/web/_bootstrapper.dart' |
4 | | | if (dart.library.js_interop) '_impl/web/_bootstrapper.dart' as impl; |
5 | | | import 'worker/worker_request.dart'; |
6 | | | import 'worker_service.dart'; |
7 | | |
|
8 | | | /// Instantiates a [WorkerService] via the [initializer] and installs the service in a platform worker. |
9 | | | /// The [command] argument is ignored on Web platforms. On native platforms, the [command] argument *must |
10 | | | /// be* set to the [Isolate]'s startup parameter. |
11 | | 9 | void run(WorkerInitializer initializer, [WorkerRequest? command]) => |
12 | | 9 | impl.bootstrap(initializer, command); |