Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
async.hpp File Reference
#include "native.h"
#include <asio.hpp>
#include <asio/experimental/awaitable_operators.hpp>
#include "signal_worker.hpp"

Go to the source code of this file.

Namespaces

namespace  dcn
 
namespace  dcn::async
 

Functions

asio::awaitable< void > dcn::async::watchdog (std::chrono::steady_clock::time_point &deadline)
 Suspends the coroutine until the given deadline is reached.
 
asio::awaitable< void > dcn::async::ensureOnStrand (const asio::strand< asio::io_context::executor_type > &strand)