Skip to content

Improved interface for run_loop #120

Open
@ericniebler

Description

@ericniebler

Issue by ericniebler
Friday Nov 12, 2021 at 20:49 GMT
Originally opened as NVIDIA/stdexec#254


@kirkshoop says : I would prefer to replace void run() and void finish() with:

run_sender run(); // always-inline sender that will not complete until cancelled.
run_chunk_sender run_chunk(); // always-inline sender that will complete when 
                              // all the items in the queue, when the sender was 
                              // started, are all consumed. It will complete even 
                              // if the queue is not empty after consuming those 
                              // items. It will potentially complete early if cancelled.
 
stop-source-ref get_stop_source();
stop-token get_stop_token() const;
void request_stop();

Metadata

Metadata

Labels

P1enhancementNew feature or requestneeds-paperNeeds a paper to be writtentokyoIssues to be worked on in Tokyo 2024 workshop

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions