Skip to content

Instantly share code, notes, and snippets.

@KennethanCeyer
Last active May 12, 2017 07:27
Show Gist options
  • Save KennethanCeyer/59448d60e9c3bea462cf66d68525ebdf to your computer and use it in GitHub Desktop.
Save KennethanCeyer/59448d60e9c3bea462cf66d68525ebdf to your computer and use it in GitHub Desktop.
Awesome kotlin's parallelstream
Connection.connect(requestParam.credential) {
val queryResult: List<Any> = requestParam.query
.parallelStream()
.map {
query(it).toList()
}
.collect(Collectors.toList())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment