load method
Compiles bytes on every worker.
Each worker compiles independently; the per-worker module (and its instances) never crosses a thread boundary.
Implementation
Future<PooledModule> load(Uint8List bytes) async {
final modules = <RemoteModule>[];
for (final worker in _workers) {
modules.add(await worker.compile(bytes));
}
return PooledModule._(this, modules);
}