onComplete

fun onComplete(hook: (attempts: Int, durationMs: Long, outcome: PollingOutcome<T>) -> Unit): PollingConfigBuilder<T>

Hook invoked once with the terminal outcome, total attempts, and elapsed time.