poll

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

Parameters

pollInterval

the interval running the background task.

warnCount

number of iterations to poll before printing a warning message.