# Base.take!

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/observation.jl#L702
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-base-take/

```
take!(stream::LibTmux.ObservationStream; timeout, cancel)
```

## Methods

Take one event with an optional deadline/cancellation; EOF throws `EOFError`.

## Parameters

- `stream` (`LibTmux.ObservationStream`)
- `timeout`
  Default: `nothing`.
- `cancel`
  Default: `nothing`.
