Last active
June 7, 2019 11:18
-
-
Save adamw/7cb9a1d92632c93194869b08669c174b 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
def run(name: String)(th: IO[_, _]): Unit = { | |
println(s"-- $name --") | |
new DefaultRuntime {}.unsafeRun(th) | |
println() | |
} | |
run("Eval on") { | |
printThread.on(ec1) | |
} | |
/* | |
Outputs: | |
-- Eval on -- | |
ec1-1-716083600 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment