Session.kill/3
Kills an exact session through one-shot execution.
Source and package
- Qualified name
-
LibTmux .Session. kill/3 - Module
- LibTmux
- Declared in
Session- Package
- libtmux
- Source
- lib/libtmux/entities.ex
- kill(connection, ref, options \\ []) @spec kill(Lib
Tmux (), Lib.Server .t Tmux (), [ Lib.Ref .t Tmux () ]) :: {:ok, LibTmux.Action.result(:ok)} | {:error, Lib.Action .option Tmux ()}.Action .error -
Description
Returns
{:ok, result}on command completion. The only option istimeout, 5000ms by default. The reference is checked against the answering server before dispatch, with the usual one-shot check/use race. A reference to something that is already gone returns{:error, %LibTmux.Action.CompletionError{}}with the original evidence. Control connections returnunsupported_transportbefore any I/O: a connection cannot kill what it is attached to. Observations you already hold keep describing the session.alias LibTmux.Session
Session.kill(server, session_ref)
- Parameters
-
-
ref(LibTmux ()).Ref .t -
options([LibTmux ()]).Action .option Default
[]
Recorded calls
source callsThe 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.Session.kill/3.
Guides
task materialPages that discuss kill/3.