On this page
server.Server.snapshot
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
- snapshot ( options : : SnapshotOptions = {} ) Promise<ServerSnapshot>
-
Acquire an immutable view of the server at this instant.
Acquisition is the only step that talks to tmux. Everything reachable from the returned value resolves locally, so traversal and filtering issue no commands and an earlier snapshot keeps reporting its own instant.
Examples
const now = await server.snapshot(); now.windows.count();
0 declared, 0 inherited