Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
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.

Any process holding the retired descriptor from start/1 can call stop/2 again and receive :ok. A descriptor built by new/1 returns {:error, error} with kind :not_owned, even for the same socket.

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.

Esc
Search in

Type to search.

Reference previewOpen reference