runInEncodingIsolate<Q, R> method

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

On web, runs the task synchronously on the main thread

Implementation

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