Core Library0.xAPI reference

Choose documentation 1

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.

MoreLess about this notice

function libtmux-elixir

Server.kill/2

Kills the server with kill-server, whoever started it.

Source and package
Qualified name
LibTmux.Server.kill/2
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex
kill(server, options \\ []) @spec kill(t(), [LibTmux.Action.option()]) :: {:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}

Description

Returns {:ok, result} when tmux acknowledges the command and {:error, error} otherwise, for example when no server answers. The command ends every session and pane on the server. It does not remove the directory of a server from start/1; use stop/2 for that. The only option is timeout (5000 ms by default). See LibTmux.Action for outcomes.

alias LibTmux.Server

Server.kill(server)

Parameters

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.kill/2.

Guides

task material

Pages that discuss kill/2.

Esc
Search in

Type to search.

Reference previewOpen reference