onError

suspend fun onError(action: suspend (RetryEvent.RetryOnError) -> Unit): Job(source)

Executes the given action when an error occurs during a retry attempt. The underlying event is emitted when an exception occurs during a retry attempt.

See also