runInBackground<T, U> method

Future<T> runInBackground<T, U>(
  1. FutureOr<T> function(
    1. U arg
    ),
  2. U arg
)

Implementation

Future<T> runInBackground<T, U>(
    FutureOr<T> Function(U arg) function, U arg) async {
  final compute = this.compute;
  return await compute(function, arg);
}