TaskHandler
Type. Synchronous or asynchronous Task operation.
Table of contents
Category
Type
Type import
tsimport type { TaskHandler } from "valyrian.js/tasks";Public signature
tstype TaskHandler<TArgs, TResult> = (args: TArgs, ctx: TaskContext) => Promise<TResult> | TResult;Type usage
TaskHandler may return its generic result synchronously or through a promise.