On this page
LibTmux.Server.CreateOwnedAsync
- Module
- LibTmux
- Declared in
- Server
- Package
- LibTmux
- Source
- src/LibTmux/Server.Lifecycle.cs
- CreateOwnedAsync ( options : ServerConnectionOptions? , cancellationToken : CancellationToken ) Task<OwnedServerScope>
-
Starts a server and takes ownership of it.
The scope holds an endpoint rather than a materialized server, because a tmux server with no sessions exits at once. Creating the first session through the endpoint both starts it for real and materializes it.
- Parameters
-
-
options ( ServerConnectionOptions? ) – Connection options.
-
cancellationToken ( CancellationToken ) – Cancels the tmux commands.
-
- Returns
-
A scope that stops the server when disposed.
0 declared, 0 inherited