IsolateComputeImpl typedef

IsolateComputeImpl = Future<R> Function<Q, R>(IsolateCallback<Q, R> callback, Q message, {String? debugLabel})

Data type of the implementation of the computation function.

Can be used as data type for the computation function, for example when returning the StatefulIsolate.compute as a return type of a function.

Implementation

typedef IsolateComputeImpl = Future<R> Function<Q, R>(
  IsolateCallback<Q, R> callback,
  Q message, {
  String? debugLabel,
});