ServerMirror.WaitUntilAsync
Waits until a view satisfies a condition, testing the current view first.
Source and package
- Module
- LibTmux
- Declared in
- ServerMirror
- Package
- LibTmux
- Source
- src/LibTmux/Snapshots/ServerMirror.cs
- WaitUntilAsync ( condition : Func<Server
Mirror , bool> , timeout : TimeView Span , cancellationToken : CancellationToken ) Task<ServerMirror >View -
- Parameters
-
-
condition ( Func<Server
Mirror , bool> ) – Judges each view.View -
timeout ( Time
Span ) – How long to wait, orInfiniteTimeSpan. -
cancellationToken ( Cancellation
Token ) – Stops waiting.
-
- Returns
-
The first view the condition accepts.
- Raises
-
-
Tmux
Wait – No view satisfied the condition in time.Timeout Exception -
Invalid
Operation – The mirror ended first; its failure, if any, is the inner exception.Exception
-