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>
6
using namespace
asio::experimental::awaitable_operators;
7
8
#include "
signal_worker.hpp
"
9
10
namespace
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
}
dcn::async
Definition
async.hpp:11
dcn::async::ensureOnStrand
asio::awaitable< void > ensureOnStrand(const asio::strand< asio::io_context::executor_type > &strand)
Definition
async.cpp:18
dcn::async::watchdog
asio::awaitable< void > watchdog(std::chrono::steady_clock::time_point &deadline)
Suspends the coroutine until the given deadline is reached.
Definition
async.cpp:5
native.h
signal_worker.hpp
src
async
include
async.hpp
Generated by
1.9.8