Delay

A mechanism that consumes a function and calls it at a regular interval, exiting if it returns a true verdict within a certain time limit but throwing an exception if it never returned a true verdict in said time window and the time was exceeded

Constructors

this
this(VerdictProviderDelegate verdictProvider, Duration interval, Duration timeout)

Constructs a new delay mechanism with the given delegate to call in order to determine the verdict, an interval to call it at and the total timeout

this
this(VerdictProviderFunction verdictProvider, Duration interval, Duration timeout)

Constructs a new delay mechanism with the given function to call in order to determine the verdict, an interval to call it at and the total timeout

Members

Functions

go
void go()

Performs the delay mechanism

Meta