pollUntilNonNull

open override fun <A> pollUntilNonNull(pollName: String, pollInterval: Duration, warnCount: Int, check: () -> A?): CordaFuture<A>

Polls a function until it returns a non-null value. Note that there is no timeout on the polling.

Return

A future that completes with the non-null value check has returned.

Parameters

pollName

A description of what is being polled.

pollInterval

The interval of polling.

warnCount

The number of polls after the Driver gives a warning.

check

The function being polled.