# LibTmuxWorkspace.freeze

- **Module:** LibTmuxWorkspace
- **Package:** LibTmuxWorkspace
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/packages/LibTmuxWorkspace/src/apply.jl#L442
- **Page:** https://libtmux.org/en/julia/latest/workspace/reference/libtmuxworkspace-freeze/

```
freeze(server::LibTmux.Server, target::LibTmux.SessionRef; timeout, cancel)
```

## Methods

Capture the supported reconstruction subset as a version-1 `WorkspaceDocument`: session/window names, window indices/layouts, pane paths and focus. Commands, options, environment, history and shell side effects cannot be reconstructed and are omitted. Shared windows become independent windows when this data is loaded. Acquisition and layout reads are bounded observations, not one atomic snapshot.

```julia
freeze(server, session::SessionRef; timeout=5.0, cancel=nothing)
```

## Parameters

- `server` (`LibTmux.Server`)
- `target` (`LibTmux.SessionRef`)
- `timeout` (`Real`)
  Default: `5.0`.
- `cancel`
  Default: `nothing`.
