Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve WhenAll/Any #62

Open
12 tasks
kononovk opened this issue Sep 2, 2021 · 0 comments
Open
12 tasks

Improve WhenAll/Any #62

kononovk opened this issue Sep 2, 2021 · 0 comments
Assignees
Labels
enhancement New feature
Milestone

Comments

@kononovk
Copy link
Member

kononovk commented Sep 2, 2021

Main idea to create:

  • Future<void> WhenAll(...); ... can be any type of futures
  • Future<vector<T>> TakeAll(...); ... can be same type of futures
  • Future<std::tuple<T...>> TakeAllArgs(...); ... can be any type of futures (first step)
  • Future<void> WhenAny(...); ... can be any type of futures
  • Future<T> TakeAny(...); ... can be same type of futures
  • Future<std::variant<T...>> TakeAnyArgs(...); ... can be any type of futures
  • Future<void> WhenSome(size_t, ...); ... can be any type of futures
  • Future<vector<T>> TakeSome(size_t, ...); ... can be same type of futures
  • Future<std::tuple<T...>> TakeSomeArgs(size_t, ...); ... can be any type of futures
  • Future<std::vector<Future<T>>>/ Future<std::tuple<Future<T>...>> TakeAll(std::vector<Future<T>> &&)
  • Overloads for containers (also for wait and await)
  • Overloads for different begin and end iterators types (also for wait and await)
@kononovk kononovk self-assigned this Sep 2, 2021
@kononovk kononovk added this to the CSC deadline milestone Sep 2, 2021
@MBkkt MBkkt changed the title New WhenAll features Improve WhenAll/Any Sep 12, 2021
@MBkkt MBkkt assigned MBkkt and Ri7ay Sep 12, 2021
@MBkkt MBkkt added the enhancement New feature label Sep 12, 2021
@MBkkt MBkkt modified the milestones: Not main priority, Small fixes Sep 12, 2021
@MBkkt MBkkt added this to To Do in Future/Promise via automation Sep 12, 2021
@MBkkt MBkkt moved this from To Do to In Progress in Future/Promise Sep 13, 2021
@kononovk kononovk unassigned MBkkt and Ri7ay Sep 27, 2021
@MBkkt MBkkt assigned Ri7ay and unassigned kononovk Nov 9, 2021
@MBkkt MBkkt modified the milestones: Small fixes, Release 2 Nov 9, 2021
@MBkkt MBkkt assigned MBkkt and unassigned Ri7ay Aug 6, 2022
@MBkkt MBkkt modified the milestones: Release 2, Not main priority Aug 6, 2022
@MBkkt MBkkt added the good first issue Good for newcomers label Aug 6, 2022
@MBkkt MBkkt removed this from In Progress in Future/Promise Aug 6, 2022
@MBkkt MBkkt removed the good first issue Good for newcomers label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

No branches or pull requests

3 participants