poll

fun <A> poll(executorService: ScheduledExecutorService, pollName: String, pollInterval: Duration = 500.millis, warnCount: Int = 120, check: () -> A?): CordaFuture<A>

Parameters

pollInterval

the interval running the background task.

warnCount

number of iterations to poll before printing a warning message.