Cutelyst
3.5.0
Cutelyst
async.h
1
/*
2
* SPDX-FileCopyrightText: (C) 2020-2022 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#ifndef ASYNC_H
6
#define ASYNC_H
7
8
#include <Cutelyst/cutelyst_global.h>
9
10
#include <memory>
11
#include <functional>
12
13
namespace
Cutelyst
{
14
15
class
Context;
16
class
ASyncPrivate;
17
class
CUTELYST_LIBRARY
ASync
18
{
19
public
:
20
ASync
();
21
ASync
(
Context
*c);
22
ASync
(
Context
*c, std::function<
void
(
Context
*c)> cb);
23
ASync
(
const
ASync
&other);
24
25
~
ASync
();
26
27
ASync
&operator =(
const
ASync
©) noexcept;
28
29
private
:
30
std::shared_ptr<ASyncPrivate> d;
31
};
32
33
}
34
35
#endif // ASYNC_H
Cutelyst::ASync
Definition:
async.h:17
Cutelyst::Context
The Cutelyst Context.
Definition:
context.h:38
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:7
Generated by
1.8.14