Skip to content

Instantly share code, notes, and snippets.

@adamw
Created June 7, 2019 10:58
Show Gist options
  • Save adamw/6ab54eb317a801f37314a45eed1dd276 to your computer and use it in GitHub Desktop.
Save adamw/6ab54eb317a801f37314a45eed1dd276 to your computer and use it in GitHub Desktop.
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