Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

TmuxWait.UntilAsync

Waits until a probe reports the state was reached.

Source and package
Qualified name
LibTmux.TmuxWait.UntilAsync
Namespace
LibTmux
Declared in
TmuxWait
Package
LibTmux
Source
src/LibTmux/Waiting/TmuxWait.cs
Type parameters
  • T for UntilAsync(probe, predicate, timeout, interval, cancellationToken)

    What is being read.

Parameters
  • probe (Func<CancellationToken, Task<bool>>) – Answers whether the state has been reached. for UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)

  • timeout (TimeSpan) – How long to keep asking. for UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)

  • interval (TimeSpan) – How long to wait between askings. for UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)

  • throwOnTimeout (bool) – Whether running out is a failure. for UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)

    Default true

  • cancellationToken (CancellationToken) – Cancels the wait.

    Default default

  • probe (Func<CancellationToken, Task<T>>) – Reads the current value. for UntilAsync(probe, predicate, timeout, interval, cancellationToken)

  • predicate (Func<T, bool>) – Answers whether a reading is the wanted one. for UntilAsync(probe, predicate, timeout, interval, cancellationToken)

  • timeout (TimeSpan) – How long to keep reading. for UntilAsync(probe, predicate, timeout, interval, cancellationToken)

  • interval (TimeSpan) – How long to wait between readings. for UntilAsync(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
  • TmuxWaitTimeoutException – The state was not reached and running out was to be a failure. for UntilAsync(probe, timeout, interval, throwOnTimeout, cancellationToken)

  • TmuxWaitTimeoutException – No reading was accepted in time. for UntilAsync(probe, predicate, timeout, interval, cancellationToken)

Recorded calls

source calls
No call edges in the C# model.

The 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 material

Pages that discuss UntilAsync.

Esc
Search in

Type to search.

Reference previewOpen reference