NPRPC docs

function get_io_context

C++

boost::asio::io_context &get_io_context()

Returns the io_context for the current RPC instance. Safe to call from any thread, including servant dispatch handlers. Use with nprpc::spawn_task() to schedule async work after dispatch returns.

include/nprpc/session_context.h:83