There should be a TaskList::run_chaining method. #6

Open
opened 2026-07-07 03:34:41 +00:00 by sessamekesh · 0 comments
Owner

Current workaround:

return main_thread_task_list_->run([]() {
  return exec_task_list_->run([]() {
    /* ... */
  });
})->then_chain([](auto p) { return p; }, main_thread_task_list_);

Desired replacement:

return main_thread_task_list_->run_chaining([]() {
  return exec_task_list_->run([]() {
    /* ... */
  });
}, /* optional - assumes "this" otherwise */ main_thread_task_list_);
Current workaround: ```cpp return main_thread_task_list_->run([]() { return exec_task_list_->run([]() { /* ... */ }); })->then_chain([](auto p) { return p; }, main_thread_task_list_); ``` Desired replacement: ```cpp return main_thread_task_list_->run_chaining([]() { return exec_task_list_->run([]() { /* ... */ }); }, /* optional - assumes "this" otherwise */ main_thread_task_list_); ```
Sign in to join this conversation.
No labels
feature-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sessamekesh/igasync#6
No description provided.