TmuxWait.UntilAsync
Waits until a probe reports the state was reached.
Source and package
- Qualified name
-
LibTmux .Tmux Wait. Until Async - Namespace
- LibTmux
- Declared in
TmuxWait- Package
- LibTmux
- Source
- src/LibTmux/Waiting/TmuxWait.cs
- static async Task<bool> UntilAsync( Func<Cancellation
Token , Task<bool>> probe, TimeSpan timeout, TimeSpan interval, bool throwOn = true, CancellationTimeout Token cancellationToken = default )static async Task<T> UntilAsync<T>( Func<CancellationToken , Task<T>> probe, Func<T, bool> predicate, TimeSpan timeout, TimeSpan interval, CancellationToken cancellationToken = default ) -
- Type parameters
-
-
TforUntilAsync(probe, predicate, timeout, interval, cancellationToken)What is being read.
-
- Parameters
-
-
probe(Func<CancellationToken , Task<bool>>) – Answers whether the state has been reached. forUntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken) -
timeout(TimeSpan ) – How long to keep asking. forUntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken) -
interval(TimeSpan ) – How long to wait between askings. forUntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken) -
throwOnTimeout(bool) – Whether running out is a failure. forUntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)Default
true -
cancellationToken(CancellationToken ) – Cancels the wait.Default
default -
probe(Func<CancellationToken , Task<T>>) – Reads the current value. forUntilAsync(probe, predicate, timeout, interval, cancellationToken) -
predicate(Func<T, bool>) – Answers whether a reading is the wanted one. forUntilAsync(probe, predicate, timeout, interval, cancellationToken) -
timeout(TimeSpan ) – How long to keep reading. forUntilAsync(probe, predicate, timeout, interval, cancellationToken) -
interval(TimeSpan ) – How long to wait between readings. forUntilAsync(probe, predicate, timeout, interval, cancellationToken)
-
- Returns
-
True when the state was reached. for
UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)The first reading the predicate accepted. for
UntilAsync(probe, predicate, timeout, interval, cancellationToken) - Errors
-
-
Tmux
Wait – The state was not reached and running out was to be a failure. forTimeout Exception UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken) -
Tmux
Wait – No reading was accepted in time. forTimeout Exception UntilAsync(probe, predicate, timeout, interval, 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.TmuxWait.UntilAsync.
Guides
task materialPages that discuss UntilAsync.