compute<P, R> method
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);
}