shouldRetry

abstract fun shouldRetry(attempt: Int, error: StreamError): Boolean

Determines whether the call should be retried.

Return

true if the call should be retried, false otherwise.

Parameters

attempt

Current retry attempt.

error

The error returned by the previous attempt.