Last active
May 12, 2017 07:27
-
-
Save KennethanCeyer/59448d60e9c3bea462cf66d68525ebdf to your computer and use it in GitHub Desktop.
Awesome kotlin's parallelstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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