Iteratively execute an action until the given predicate becomes false.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static void Repeat( 
this Func<bool> whileIsTrueThat
Action @do 
)
This language is not supported or no code example is available.

Parameters

whileIsTrueThat

Type: Func<bool>

The predicate to use to control the number of iterations to execute.

@do

Type: Action

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono