54[[nodiscard]]
auto Async(std::string name, Function&& f, Args&&... args) {
56 engine::
impl::TaskConfig{},
57 utils::impl::SpanLazyPrvalue(std::move(name)),
58 std::forward<Function>(f),
59 std::forward<Args>(args)...
75[[nodiscard]]
auto Async(engine::TaskProcessor& task_processor, std::string name, Function&& f, Args&&... args) {
77 engine::
impl::TaskConfig{.task_processor = &task_processor},
78 utils::impl::SpanLazyPrvalue(std::move(name)),
79 std::forward<Function>(f),
80 std::forward<Args>(args)...
97 engine::TaskProcessor& task_processor,
103 engine::
impl::TaskConfig{
104 .task_processor = &task_processor,
107 utils::impl::SpanLazyPrvalue(std::move(name)),
108 std::forward<Function>(f),
109 std::forward<Args>(args)...
125[[nodiscard]]
auto SharedAsync(engine::TaskProcessor& task_processor, std::string name, Function&& f, Args&&... args) {
127 engine::
impl::TaskConfig{.task_processor = &task_processor},
128 utils::impl::SpanLazyPrvalue(std::move(name)),
129 std::forward<Function>(f),
130 std::forward<Args>(args)...
145[[nodiscard]]
auto CriticalAsync(std::string name, Function&& f, Args&&... args) {
148 utils::impl::SpanLazyPrvalue(std::move(name)),
149 std::forward<Function>(f),
150 std::forward<Args>(args)...
168 utils::impl::SpanLazyPrvalue(std::move(name)),
169 std::forward<Function>(f),
170 std::forward<Args>(args)...
185[[nodiscard]]
auto SharedAsync(std::string name, Function&& f, Args&&... args) {
187 engine::
impl::TaskConfig{},
188 utils::impl::SpanLazyPrvalue(std::move(name)),
189 std::forward<Function>(f),
190 std::forward<Args>(args)...
206[[nodiscard]]
auto Async(std::string name, engine::Deadline deadline, Function&& f, Args&&... args) {
208 engine::
impl::TaskConfig{.deadline = deadline},
209 utils::impl::SpanLazyPrvalue(std::move(name)),
210 std::forward<Function>(f),
211 std::forward<Args>(args)...
248 engine::TaskProcessor& task_processor,
253 engine::
impl::TaskConfig{.task_processor = &task_processor},
254 utils::impl::SpanLazyPrvalue(
256 utils::impl::SpanWrapCall::InheritVariables::kNo,
257 utils::impl::SpanWrapCall::HideSpan::kNo
259 std::forward<Function>(f),
260 std::forward<Args>(args)...
280 engine::TaskProcessor& task_processor,
285 engine::
impl::TaskConfig{
286 .task_processor = &task_processor,
289 utils::impl::SpanLazyPrvalue(
291 utils::impl::SpanWrapCall::InheritVariables::kNo,
292 utils::impl::SpanWrapCall::HideSpan::kNo
294 std::forward<Function>(f),
295 std::forward<Args>(args)...