Cutelyst  3.5.0
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 &copy) noexcept;
28 
29 private:
30  std::shared_ptr<ASyncPrivate> d;
31 };
32 
33 }
34 
35 #endif // ASYNC_H
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:7