RunOptions
How long Server.run lets a program run, and how to stop it early.
Source and package
- Qualified name
-
RunOptions - Module
- types
- Package
- libtmux
- Source
- packages/libtmux/src/types.ts
Members3#
- separateStderr: boolean property Send the program's stderr to a private file rather than the terminal, and return it as
stderr, sooutputholds stdout alone. stderr is then no terminal, which some programs notice. Likeinput, it needs the tmux server on this machine. - signal: Abort
Like property Stop the program when this fires; the call rejects withTmuxTransportErrorof kindcancelled, the signal's reason as itscause. Itsdeliveryiswrittenonce the program had started, which may have done part of its work, and as forSpawnOptions.signalbefore. - timeoutMs: number property Stop the program after this many milliseconds and report what it printed with
timedOutset. A positive timer-safe integer; no limit by default.