# ReceiveErrorKind

`import { ReceiveErrorKind } from "destack:channel";`

Channel receive failure kind.

```ds title="ReceiveErrorKind"
export enum ReceiveErrorKind {
    Closed,
    Empty,
    Lagged,
}
```

[language/library/src/channel/channel.ds:14:21](https://github.com/destack-sh/destack/blob/main/language/library/src/channel/channel.ds#L14-L21)

## Variants

### `Closed`

The sender endpoint is closed.

### `Empty`

The channel has no message available.

### `Lagged`

The receiver skipped messages.
