Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::async::SystemExecutionContext Class Reference

A execution context that runs tasks on a system thread pool of 1 thread. More...

#include <SystemExecutionContext.hpp>

Static Public Member Functions

static auto & instance ()
 Get the instance of the system execution context.
 

Detailed Description

A execution context that runs tasks on a system thread pool of 1 thread.

This is useful for timers and system tasks that need to be scheduled on a exececution context that otherwise would not be able to support them (e.g. a synchronous execution context).

Member Function Documentation

◆ instance()

static auto & util::async::SystemExecutionContext::instance ( )
inlinestaticnodiscard

Get the instance of the system execution context.

Returns
Reference to the global system execution context

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