onResultType

inline fun <T> onResultType(): RetryPredicate

Returns a RetryPredicate that checks if the result is of the specified type T.

This can be used to only retry operations if the result is a certain type. The check is performed using Kotlin's is keyword, which returns true for objects of the specified type or any of its subclasses.

Return

a RetryPredicate that allows retries when the result is of type T

Since

1.0.0