import { AbstractWorker } from "https://deno.land/x/poolifier@v0.3.14/src/mod.ts";
Adds a task function to the worker. If a task function with the same name already exists, it is replaced.
Parameters
fn: TaskFunction<Data, Response>
- The task function to add.
Returns
Whether the task function was added or not.