Created
June 7, 2019 10:58
-
-
Save adamw/6ab54eb317a801f37314a45eed1dd276 to your computer and use it in GitHub Desktop.
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
val a = IO.async[Unit] { cb => | |
ec3.submit(new Runnable { | |
override def run(): Unit = { | |
println(Thread.currentThread().getName + " (async)") | |
cb(Right(())) | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment