Created
December 16, 2020 11:59
-
-
Save dsebban/6b11e0c575bbde0457065145d3bb5043 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 task(id: Int): Runnable = () => | |
{ | |
println(s"${Thread.currentThread().getName()} start-$id") | |
Thread.sleep(10000) | |
println(s"${Thread.currentThread().getName()} end-$id") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment