# LibTmux.Control.readControlEvent

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/internal/LibTmux/Internal/Control.hs#L76
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-control-v-readcontrolevent/

```haskell
readControlEvent
  :: Control -> STM (Either ControlEnd ControlEvent)
```

Signature types: [`Control`](/en/haskell/latest/reference/libtmux-control-t-control/), [`STM`](https://hackage.haskell.org/package/base-4.22.0.0/docs/GHC-Conc-Sync.html#t:STM), [`Either`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Either.html#t:Either), [`ControlEnd`](/en/haskell/latest/reference/libtmux-control-t-controlend/), [`ControlEvent`](/en/haskell/latest/reference/libtmux-control-t-controlevent/).

Wait for one queued event or the terminal state. Compose this STM action
 with application events or an application deadline.

## Referenced declarations

- [`LibTmux.Control.Control`](/en/haskell/latest/reference/libtmux-control-t-control/) (data type)
- [`LibTmux.Control.ControlEnd`](/en/haskell/latest/reference/libtmux-control-t-controlend/) (data type)
- [`LibTmux.Control.ControlEvent`](/en/haskell/latest/reference/libtmux-control-t-controlevent/) (data type)

## Guides

Pages that discuss `readControlEvent`.

- [Observe control notifications](/en/haskell/latest/guides/control/)
