NVIDIA / NVIDIA/stdexec

What's the recommended way to wait a list of senders?

Open
#1,631 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.4k
Forks
270
Avg merge
3d 6h
Merged PRs (30d)
39

Description

e.g. I have a vector of senders.

int n = <some runtime-known number>;

std::vector<MySender> senders;
for (int i = 0; i < n; ++i) {
  senders.push_back(...);
}

How to execute them in parallel and get all results? when_all doesn't work because all input senders of when_all should be known at compile-time. I can't pass a vector to when_all.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the issue's vector-of-senders example and the constraints of the mentioned when_all facility. Determine whether the project already has an entry point for dynamically sized sender collections and what parallel execution and result collection should mean. Done should be a documented, agreed recommendation or a clearly scoped change request.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.