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