apache / apache/pekko

Feature request: Add `Source.multi` method

Open
#1,238 7 comments 0 reactions 0 assignees View on GitHub
t:stream
Dominant language
Scala
Stars
1.6k
Forks
211
Avg merge
1d 6h
Merged PRs (30d)
89

Description

Motivation:

There are many `Source.from(Arrays.asList(...))` in Java, I think we can add something like `Source.multi(...)` which work as the `Flux.Just(T ...t)`.

Result:
Replace `Source.from(Arrays.asList(1,2,3))` to `Source.multi(1,2,3))`

Contributor guide

Open the contributing guide

Research direction

Locate the Source.from API and any existing Source tests, then compare their behavior with the requested Flux.Just-style varargs call. Done means Source.multi(1,2,3) provides the same result as Source.from(Arrays.asList(1,2,3)), with coverage for the new API.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala
Domain
stream-processing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.