DVWorkerTask<I, O> typedef
DVWorkerTask<I, O> =
FutureOr<O> Function(I input, DVWorkerReporter reporter)
A task: a top-level or static function from a typed input to a typed output. That is what can cross an isolate boundary and what a web worker can be handed; a closure over the calling scope is neither.
Implementation
typedef DVWorkerTask<I, O> = FutureOr<O> Function(
I input, DVWorkerReporter reporter);