Workspace ManagerconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

ownership.mayPrune

function mayPrune( policy: PrunePolicy, owned: boolean, ): boolean

Whether surplus topology may be removed.

Description#

owned is the default because it is the only one that is safe without knowing where the session came from: a workspace prunes what it built and leaves alone what it merely found. always authorizes pruning for one operation; it does not stamp or otherwise adopt the session.

Parameters
Esc

Type to search.

Reference previewOpen reference