Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::impl::PropagatingCompletionHandler Struct Reference

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

#include <Spawn.hpp>

Public Member Functions

void operator() (std::exception_ptr ePtr)
 The completion handler.
 

Detailed Description

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.

Member Function Documentation

◆ operator()()

void util::impl::PropagatingCompletionHandler::operator() ( std::exception_ptr ePtr)
inline

The completion handler.

Parameters
ePtrThe exception that was caught on the coroutine

The documentation for this struct was generated from the following file: