1 | #pragma once |
---|---|
2 | |
3 | #include <mbgl/util/async_request.hpp> |
4 | |
5 | #include <memory> |
6 | |
7 | namespace mbgl { |
8 | |
9 | class WorkTask; |
10 | |
11 | class WorkRequest : public AsyncRequest { |
12 | public: |
13 | using Task = std::shared_ptr<WorkTask>; |
14 | WorkRequest(Task); |
15 | ~WorkRequest() override; |
16 | |
17 | private: |
18 | std::shared_ptr<WorkTask> task; |
19 | }; |
20 | |
21 | } // namespace mbgl |
22 |