unloadInstance static method

Future unloadInstance(
  1. int engineId,
  2. VoltronMap params
)

Implementation

static Future unloadInstance(
  int engineId,
  VoltronMap params,
) async {
  var stopwatch = Stopwatch();
  stopwatch.start();
  var paramsPair = _parseParams(params);
  stopwatch.stop();
  LogUtils.profile("unloadInstance parse params", stopwatch.elapsedMilliseconds);
  _BridgeFFIManager.instance.unloadInstance(
    engineId,
    paramsPair.left,
    paramsPair.right.length,
  );
  stopwatch.stop();
  LogUtils.profile("unloadInstance", stopwatch.elapsedMilliseconds);
}