FallbackConfig

constructor(onFallback: suspend (Throwable) -> T)

Type Parameters

T

The type of the result that the fallback action will return. Must match the return type of the block passed to FallbackPolicy.execute, otherwise a ClassCastException may occur at runtime.