Server.with_owned/2
Starts a private server, calls fun with it and stops it afterwards.
Source and package
- Qualified name
-
LibTmux .Server. with _owned/2 - Module
- LibTmux
- Declared in
Server- Package
- libtmux
- Source
- lib/libtmux/server.ex
-
Description
Takes the options of
start/1. Returns the value offun. A start failure raises itsLibTmux.Errorbeforefunruns. The server stops whenfunreturns, raises, throws or exits. Iffuncompletes and the stop fails,with_owned/2raises the stop error; a failing stop never replaces an exception fromfun.alias LibTmux.Server
Server.with_owned([executable: System.find_executable("tmux")], fn server -> {:ok, _} = Server.new_session(server, "demo", command: {:argv, ["/bin/cat"]}) Server.snapshot!(server) end)
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.with_owned/2.
Guides
task materialPages that discuss with_owned/2.