TaskFunction
Home > @backstage/backend-tasks
> TaskFunction
A function that can be called as a scheduled task.
It may optionally accept an abort signal argument. When the signal triggers, processing should abort and return as quickly as possible.
Signature:
export type TaskFunction = ((abortSignal: AbortSignal) => void | Promise<void>) | (() => void | Promise<void>);