apple / apple/servicetalk

Implement Single#collectInOrder()

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1k
Forks
229
Avg merge
23h 23m
Merged PRs (30d)
16

Description

PR #186 added `collect()` methods for `Single`. These methods internally use `Publisher#flatMapSingle()` and hence does not guarantee order in the generated `Collection` (returned by `collect()`). As we do not have a method that preserves order (`concatMapEager()`) we can not provide a `collect()` variant that preserves order. It will be a useful API to provide.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing PR #186 and the existing collect() methods for Single. Compare their use of Publisher#flatMapSingle() with the ordering behavior described for concatMapEager(); done means providing a Single collection variant that preserves source order.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.