decorateCtxBiFunction

inline fun <A, B, R, T> decorateCtxBiFunction(noinline resultMapper: ResultMapper<R, T> = defaultResultMapper(), crossinline block: CtxBiFunction<RetryContext, A, B, R>): BiFunction<A, B, T?>(source)

Decorates a BiFunction with this retry mechanism by providing an additional RetryContext.

Parameters

resultMapper

The mapper to transform the result or the exception. By default, no result mapping is performed, and exception handling defaults to the handler configured in the configuration.

block

The operation to decorate and execute later.

See also