# Base.wait

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

```
wait(signal::LibTmux.ControlSignal; timeout, cancel)
```

## Methods

Wait once for an owned signal. The tmux command's `%end` is not completion: the request retires only when its following fence executes. After submission, cancellation wakes the caller with uncertain-effect evidence while an owned worker signals and retires the backend wait on a second control connection.

```julia
wait(signal::ControlSignal; timeout=5.0, cancel=nothing)
```

## Parameters

- `signal` (`LibTmux.ControlSignal`)
- `timeout` (`Real`)
  Default: `5.0`.
- `cancel`
  Default: `nothing`.
