Pane.RunAsync
Runs a shell command in the pane and waits for its exit status.
Source and package
- Qualified name
-
LibTmux .Pane. Run Async - Namespace
- LibTmux
- Declared in
Pane- Package
- LibTmux
- Source
- src/LibTmux/Pane.Running.cs
- Task<Pane
Run > RunAsync( string command, TimeResult Span timeout, CancellationToken cancellationToken = default )Task<PaneRun > RunAsync( PaneResult Run request, CancellationRequest Token cancellationToken = default ) -
- Parameters
-
-
command(string) – The shell command. forRunAsync(command, timeout, cancellationToken) -
timeout(TimeSpan ) – How long to wait for it. forRunAsync(command, timeout, cancellationToken) -
cancellationToken(CancellationToken ) – Stops waiting. A command already sent keeps running, so cancelling then raisesLibTmuxExceptionsaying it may have run, notOperationCanceledException, whichWaitand F#'sAsync.AwaitTaskreplace with a bareTaskCanceledException.Default
default -
request(PaneRun ) – The command and how long to wait. forRequest RunAsync(request, cancellationToken)
-
- Returns
-
The exit status and what the command printed.
- Errors
-
-
Argument
Exception –commandis blank. forRunAsync(command, timeout, cancellationToken) -
Tmux
Pane – The pane is not at a POSIX shell, is in a mode, or its program has exited; or it changed during every read before the command was sent.Exception -
Tmux
Object – tmux no longer has the pane.Not Found Exception -
Tmux
Version – The server is older than tmux 3.4, which cannot delete the command's buffer by name.Too Low Exception -
Lib
Tmux – The command's result could not be read, or its private files could not be deleted; inspect the failure before retrying.Exception -
Argument
Out – The timeout or output budget is invalid. forOf Range Exception RunAsync(request, cancellationToken)
-
Recorded calls
source callsThe C# 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.Pane.RunAsync.