retryTimeout

abstract fun retryTimeout(attempt: Int, error: StreamError): Int

Provides a timeout used to delay the next call.

Return

The timeout in milliseconds before making a retry.

Parameters

attempt

Current retry attempt.

error

The error returned by the previous attempt.