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, int millisecondsTimeout)

Parameters

condition
A delegate to be executed over and over until it returns true.
millisecondsTimeout
The number of milliseconds to wait, or Timeout.Infinite (-1) 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