3#include <xrpl/basics/Log.h>
5#include <boost/asio/spawn.hpp>
6#include <boost/asio/strand.hpp>
36 JLOG(
debugLog().warn()) <<
"Spawn exception: " << e.
what();
41 JLOG(
debugLog().warn()) <<
"Spawn exception: Unknown";
62template <
typename Ctx,
typename F>
74 boost::asio::make_strand(boost::asio::get_associated_executor(
std::forward<Ctx>(ctx))),
constexpr auto kPROPAGATE_EXCEPTIONS
A completion handler that restores boost::asio::spawn's behaviour from Boost 1.83.
void spawn(Ctx &&ctx, F &&func)
Spawns a coroutine using boost::asio::spawn
beast::Journal debugLog()
Returns a debug journal.
T rethrow_exception(T... args)