akka icon indicating copy to clipboard operation
akka copied to clipboard

Add `Source.elements` back for javadsl?

Open He-Pin opened this issue 3 years ago • 1 comments

Source.elements will be easy to use than the current Source.from(Arrays.asList(...)) In Flux we can use Flux.fromArray and Flux.just(T...t) refs:https://github.com/akka/akka/issues/17923 refs: https://github.com/akka/akka/pull/17950 refs: https://github.com/scala/bug/issues/8743


He-Pin avatar Aug 29 '22 08:08 He-Pin

Do you mean that it would take a varargs parameter?

Source.elements("a", "b", "c")

patriknw avatar Aug 29 '22 12:08 patriknw