Created
March 27, 2020 13:16
-
-
Save Vilkina/bd716370babcc308777aa5999608d62a to your computer and use it in GitHub Desktop.
This file contains 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
def copyChunk(from: AsynchronousFileChannel, | |
to : AsynchronousFileChannel) = | |
for { | |
chunk <- from.read(1024, 0) | |
_ <- to.write(chunk, 0) | |
} yield () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment