.NET Framework Class Library |
SpinWait..::.SpinUntil Method (Func<(Of <(Boolean>)>)) |
SpinWait Structure See Also Send Feedback |
Spins until the specified condition is satisfied.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Sub SpinUntil ( _ condition As Func(Of Boolean) _ ) |
C# |
---|
public static void SpinUntil( Func<bool> condition ) |
Parameters
- condition
- Type: System..::.Func<(Of <(Boolean>)>)
A delegate to be executed over and over until it returns true.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | The condition argument is null. |