# io.github.libtmux.Channel.Channel.awaitReservingCapacity

- **Module:** io.github.libtmux.Channel.Channel
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Channel.java#L71
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-channel-channel-awaitreservingcapacity/

```
io.github.libtmux.Channel.Channel.awaitReservingCapacity(timeout: Duration) -> WakeReason
```

Waits while preserving process capacity for a call through this server that signals it.

Use this when the waiter and its release share a bounded transport. A wait released outside
that transport should use {@link #await}; reserving capacity for it only rejects useful
concurrency.

## Raises

- `io.github.libtmux.transport.TmuxTransportException`: if the wait could not be dispatched
- `InterruptedException`: if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one
