System.Threading.SpinWait.SpinUntil Method

Spins until the specified condition is satisfied or until the specified timeout is expired.

Syntax

public static bool SpinUntil (Func<bool> condition, TimeSpan timeout)

Parameters

condition
A delegate to be executed over and over until it returns true.
timeout
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.

Returns

True if the condition is satisfied within the timeout; otherwise, false

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0