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.Returns
{:error, error}with kind:not_ownedfor a Server thatnew/1built or that another process started and already stopped.
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.
Guides
task materialPages that discuss stop/2.