Browse documentation

TaskContext

Type. Abort context passed to a Task handler.

Table of contents

Category

Type

Type import

ts
import type { TaskContext } from "valyrian.js/tasks";

Public signature

ts
type TaskContext = { signal: AbortSignal; };

Type usage

TaskContext gives a handler the AbortSignal for its current run.