compute<P, R> method

Future<R> compute<P, R>(
  1. Function fn, {
  2. P? param,
})

Executes function fn with passed param. Takes only top-level functions and static methods. P is param type, R is function return type

Implementation

Future<R> compute<P, R>(
  Function fn, {
  P? param,
}) async {
  return _computeDelegate.compute<P, R>(fn, param: param);
}