Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
type alias TaskAsyncFunction
import { type TaskAsyncFunction } from "https://deno.land/x/poolifier@v0.3.14/src/worker/task-functions.ts";

Task asynchronous function that can be executed. This function must return a promise.

Type Parameters

optional
Data = unknown
optional
Response = unknown
definition: (data?: Data) => Promise<Response>