Skip to content

Instantly share code, notes, and snippets.

@Cs4r
Created April 2, 2016 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cs4r/e55bf303d62aa2a4fca2c1a40cfe7b00 to your computer and use it in GitHub Desktop.
Save Cs4r/e55bf303d62aa2a4fca2c1a40cfe7b00 to your computer and use it in GitHub Desktop.
Create a source from a collection with akka-streams
final Source<Integer, NotUsed> sourceOfNumbers = Source.from(
Arrays.asList(1,2,3)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment