onResult

val onResult: (attempt: Int, result: PollingResult<T>) -> Unit