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