# common.CommandOptions.timeoutMs

- **Module:** common.CommandOptions
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/common.ts#L100
- **Page:** https://libtmux.org/en/ts/latest/reference/common-commandoptions-timeoutms/

Give up on the command after this many milliseconds.

Must be a positive timer-safe integer.

Overrides the server's default, which is 30 seconds unless the server was
built with another. `null` removes the deadline for this call alone.

Bounds only this call's own wait. On `["wait-for", "-L", name]` in
particular, tmux queues a lock request and hands it to the first queued
locker regardless of whether that locker is still around to claim it
(`cmd-wait-for.c`) — so a caller whose bounded wait timed out or was
cancelled can still be the one tmux is holding the lock for, wedging that
channel for every future locker until the process that requested it
unlocks it, which a caller that gave up on the wait will never do.
