instantiate method

Future<RemoteInstance> instantiate([
  1. Map<String, Map<String, Object?>> imports = const {}
])

Instantiates the module in the worker's store.

Function imports are Dart functions; memory, table and global imports have to be given as descriptors (a Memory/Table/Global object cannot be sent to another isolate).

Implementation

Future<RemoteInstance> instantiate([
  Map<String, Map<String, Object?>> imports = const {},
]) => worker._instantiate(_id, imports);