rippled
Loading...
Searching...
No Matches
Concepts | Variables
ripple::util::impl Namespace Reference

Concepts

concept  IsStrand
 

Variables

constexpr auto kPROPAGATE_EXCEPTIONS
 A completion handler that restores boost::asio::spawn's behaviour from Boost 1.83.
 

Variable Documentation

◆ kPROPAGATE_EXCEPTIONS

constexpr auto ripple::util::impl::kPROPAGATE_EXCEPTIONS
constexpr
Initial value:
= [](std::exception_ptr ePtr) {
if (ePtr)
{
try
{
}
catch (std::exception const& e)
{
JLOG(debugLog().warn()) << "Spawn exception: " << e.what();
throw;
}
catch (...)
{
JLOG(debugLog().warn()) << "Spawn exception: Unknown";
throw;
}
}
}
beast::Journal debugLog()
Returns a debug journal.
Definition Log.cpp:457
T rethrow_exception(T... args)
T what(T... args)

A completion handler that restores boost::asio::spawn's behaviour from Boost 1.83.

This is intended to be passed as the third argument to boost::asio::spawn so that exceptions are not ignored but propagated to io_context.run() call site.

Parameters
ePtrThe exception that was caught on the coroutine

Definition at line 30 of file Spawn.h.