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.stop/2

Stops a server that start/1 created and removes its directory.

Source and package
Qualified name
LibTmux.Server.stop/2
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex
stop(server, options \\ []) @spec stop(t(), [{:timeout, 1..600_000}]) :: :ok | {:error, LibTmux.Error.t()}

Description

Sends kill-server, waits until the native helper proves that the daemon has exited, and removes the directory. Stopping a server that already stopped returns :ok. If the daemon still answers when :timeout (5000 ms by default) ends, or the directory cannot be removed, it returns {:error, error} and keeps the directory; call it again to retry.

Returns {:error, error} with kind :not_owned for a Server that new/1 built or that another process started and already stopped.

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.stop/2.

Guides

task material

Pages that discuss stop/2.

Esc
Search in

Type to search.

Reference previewOpen reference