Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method AbstractWorker.prototype.setDefaultTaskFunction
import { AbstractWorker } from "https://deno.land/x/poolifier@v0.3.14/src/mod.ts";

Sets the default task function to use in the worker.

Parameters

name: string
  • The name of the task function to use as default task function.

Returns

Whether the default task function was set or not.