runInComputeIsolate<Q, R> method

Future<R> runInComputeIsolate<Q, R>(
  1. R task(
    1. Q
    ),
  2. Q argument
)

dedicated for compute operations (like crypto, hashing, etc)

Implementation

Future<R> runInComputeIsolate<Q, R>(
  R Function(Q) task,
  Q argument,
) async {
  await ready;
  return _runTask(task, argument, _computePool);
}