# LibTmux.Control.pollControlEvent

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

```haskell
pollControlEvent
  :: Control -> STM (Maybe (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), [`Maybe`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Maybe.html#t:Maybe), [`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/).

Read an available result without waiting.

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

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