of static method

The running worker of the library of symbols, started on demand.

Implementation

static Future<NativeWorker> of(NativeSymbols symbols) {
  final key = Object.hash(symbols.open.address, symbols.abiV2?.open.address);

  return _workers[key] ??= _spawn(
    key,
    symbols.addresses,
    symbols.abiV2?.addresses,
  );
}