Type Alias: MainTask<T, R> 
MainTask<
T,R> = (data) =>Promise<R> |R| (data,utils) =>Promise<R> |R
Defined in: operators/coroutine.ts:116
Type Parameters 
T 
T = any
R 
R = any
Type for the main task function running inside the worker.