SpinUntil Method (Func(Boolean))

Task Parallel System.Threading

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

ExceptionCondition
System..::.ArgumentNullExceptionThe condition argument is null.

See Also