CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ SpinUntil() [1/3]

static void Cqrs.Infrastructure.SpinWait.SpinUntil ( Func< bool >  condition,
short  sleepInMilliseconds = 0 
)
static

Spins until the specified condition is satisfied.

Parameters
conditionA delegate to be executed over and over until it returns true.
sleepInMillisecondsThe amount of milliseconds the thread will sleep for.
Exceptions
T:System.ArgumentNullExceptionThe condition argument is null.