Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method AbstractWorker.prototype.addTaskFunction
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

name: string
  • The name of the task function to add.
  • The task function to add.

Returns

Whether the task function was added or not.