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
Go to the documentation of this file.
1#pragma once
2
3#include "native.h"
4#include <asio.hpp>
5#include <asio/experimental/awaitable_operators.hpp>
6using namespace asio::experimental::awaitable_operators;
7
8#include "signal_worker.hpp"
9
10namespace dcn::async
11{
21 asio::awaitable<void> watchdog(std::chrono::steady_clock::time_point& deadline);
22
23 asio::awaitable<void> ensureOnStrand(const asio::strand<asio::io_context::executor_type> & strand);
24}
Definition async.hpp:11
asio::awaitable< void > ensureOnStrand(const asio::strand< asio::io_context::executor_type > &strand)
Definition async.cpp:18
asio::awaitable< void > watchdog(std::chrono::steady_clock::time_point &deadline)
Suspends the coroutine until the given deadline is reached.
Definition async.cpp:5