cuda::experimental::stf::sump::backoff_t#

struct backoff_t#

Re-attempts with decorrelated-jitter delays.

Uses the AWS “Exponential Backoff and Jitter” decorrelated algorithm: plain exponential backoff synchronizes clients into retry storms. Randomness is hook-local xorshift state; there is no global state and no <random> dependency.

Public Functions

template<class _Fn>
inline decltype(auto) on_thrown(
const ::std::exception*,
const ::cuda::std::source_location,
_Fn &__fn
)#
template<class _Status, class _Fn>
inline detail::__status_answer<_Status> on_returned(
_Status __status,
const ::cuda::std::source_location,
_Fn &__fn
) const#

The code-channel hook: re-runs a status-returning action after each delay while its result fails; exhaustion passes the latest status through.

An exception from a re-run escapes.