initializeIsolateWorkerModule function

Future<void> initializeIsolateWorkerModule(
  1. IsolateInitializer initializer, [
  2. IsolateInitializeArguments args = const IsolateInitializeArguments({})
])

Implementation

Future<void> initializeIsolateWorkerModule(
  IsolateInitializer initializer,
  [IsolateInitializeArguments args = const IsolateInitializeArguments({})]
) async {
  await IsolateWorkerManager.initialize(
    initializer,
    kIsWeb? WebIsolateManagerImpl.createIsolate
      : IsolateManagerImpl.createIsolate,
    args
  );
}