Skip to content

Instantly share code, notes, and snippets.

@Raouf25
Created April 10, 2020 16:18
Show Gist options
  • Save Raouf25/027c66f01cc0e950cf3c2cc21aa99145 to your computer and use it in GitHub Desktop.
Save Raouf25/027c66f01cc0e950cf3c2cc21aa99145 to your computer and use it in GitHub Desktop.
files.stream()
.parallel()
.map(file-> extractInputStream(file))
.forEach(inputStream -> carService.saveCars(inputStream));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment