> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# DurableTaskHandler

> Type alias exported by @botmesh/core.

```ts theme={null}
type DurableTaskHandler = (run) => void | Promise<void>;
```

Defined in: [core/types.ts:418](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L418)

Handler of a durable task.

## Parameters

| Parameter | Type |
| - | - |
| `run` | [`ScheduledRun`](https://botmesh.afaya.com.co/api/core/interfaces/ScheduledRun) |

## Returns

`void` | `Promise`\<`void`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.