ControlSession
A live control-mode connection.
Source and package
- Qualified name
-
ControlSession - Package
- libtmux-swift
- Source
- Sources/LibTmux/ControlSession.swift
- class ControlSession : actor Control
Session -
Description#
Commands go in and numbered replies come back, so output belongs to the command that produced it — the attribution a
;list cannot give. Anything the server volunteers meanwhile arrives onnotifications.
Members5#
Common operations1#
- watch(_:) method Registers a format subscription on this connection.
Other members4#
- changes(named:) method Every subscription change on this connection, optionally narrowed to one subscription's name.
- notifications: var notifications: Control
Notification property Everything the server volunteered:Stream %output,%window-add, and the rest. - send(_:) method Sends a command and waits for the block tmux brackets its reply with.
- stopWatching(_:) method Removes the subscription registered under
name.
Inherited members3 members#
Reached through Actor.assertIsolated(_:file:line:), Actor.assumeIsolated(_:file:line:), Actor.preconditionIsolated(_:file:line:).
- assertIsolated(_:file:line:) method inherited Stops program execution if the current task is not executing on this actor's serial executor.
- assumeIsolated(_:file:line:) method inherited Assume that the current task is executing on this actor's serial executor, or stop program execution otherwise.
- preconditionIsolated(_:file:line:) method inherited Stops program execution if the current task is not executing on this actor's serial executor.