# limits.DispatchLimits.acquire_timeout

- **Module:** limits.DispatchLimits
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/limits.rs#L140
- **Page:** https://libtmux.org/en/rs/latest/reference/limits-dispatchlimits-acquire_timeout/

```
limits.DispatchLimits.acquire_timeout(self, timeout: Option<Duration>) -> Self
```

How long a dispatch waits for a permit before giving up.

`None` waits as long as the dispatch's own deadline allows. A value
may shorten that wait but never extends the dispatch deadline. It
makes overload distinguishable from slowness:
[`Error::Overloaded`](crate::Error::Overloaded) says the server never
started the work, so retrying it is safe.
