Created
April 18, 2014 19:30
-
-
Save runarorama/11060658 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 fail: Task[Int] = Task.fail(new Error("oops")) | |
lazy val test1 = f(fail) // hangs | |
def test2 = f(fail) // works | |
lazy val test3 = f(Task.fail(new Error("oops"))) // works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment