Skip to content

Instantly share code, notes, and snippets.

@runarorama
Created April 18, 2014 19:30
Show Gist options
  • Save runarorama/11060658 to your computer and use it in GitHub Desktop.
Save runarorama/11060658 to your computer and use it in GitHub Desktop.
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