pollUntilNonNull

abstract fun <A> pollUntilNonNull(pollName: String, pollInterval: Duration = DEFAULT_POLL_INTERVAL, warnCount: Int = DEFAULT_WARN_COUNT, 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.