LeviLamina
Loading...
Searching...
No Matches
ServerThreadExecutor.h
1#pragma once
2
3#include "ll/api/coro/Executor.h"
4
5namespace ll::thread {
6class ServerThreadExecutor final : public coro::Executor {
7 struct Impl;
8 std::unique_ptr<Impl> impl;
9
10public:
11 LLAPI ServerThreadExecutor(std::string name, Duration maxOnceDuration, size_t checkPack);
12
13 LLAPI ~ServerThreadExecutor() override;
14
15 LLAPI void execute(std::function<void()>) const override;
16
17 LLAPI std::shared_ptr<data::CancellableCallback> executeAfter(std::function<void()>, Duration) const override;
18
19 LLNDAPI static ServerThreadExecutor const& getDefault();
20};
21} // namespace ll::thread
Definition Executor.h:17
Definition ServerThreadExecutor.h:6