> ## 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.

# StopOptions

> Interface exported by @botmesh/core.

Defined in: [core/Bot.ts:196](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/Bot.ts#L196)

Options of [Bot.stop](https://botmesh.afaya.com.co/api/core/classes/Bot.md#stop).

## Properties

### drain?

```ts theme={null}
drain?: boolean;
```

Defined in: [core/Bot.ts:198](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/Bot.ts#L198)

Wait for in-flight sends to complete before stopping (default `false`).

***

### timeout?

```ts theme={null}
timeout?: string | number;
```

Defined in: [core/Bot.ts:200](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/Bot.ts#L200)

Max time to wait for the drain before forcing the stop: a duration (`'5s'`) or ms. Default `10000`.


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