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
-
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/1can callstop/2again and receive:ok. A descriptor built bynew/1returns{:error, error}with kind:not_owned, even for the same socket.
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.Server.stop/2.