facebookexperimental / facebookexperimental/libunifex

Generalise range_stream to adapt arbitrary ranges to async-streams

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

The current implementation of `range_stream` produces a stream of integers in some specified range.

This was largely built just so we had some kind of stream that we could test against, but it would be much more useful to change this to take an arbitrary range (view/container) and allow construction of a stream that produces the elements of that range.

Existing uses of the `range_stream` could be changed to `range_stream(std::views::iota(min, max))`.
Or we could rename the existing stream `iota_stream` and then add a more general `range_stream`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.