Closed
Description
I was working through the great documentation on futures 527C and came across a basic issue:
:13: error: not found: value Success
f onComplete { case Success(x) => println(x); case Failure(e) => println(s"failed: $e") }
After some googling it seems a refactor moved those values to a different location. Adding this import fixes things:
scala> import scala.util.{Success, Failure}
I started to add this to the markdown docs for a pull request, but wanted to see if just adding it to the top where the other imports are mentioned is best or if someone more familiar with this change and the docs has a better suggestion?
Metadata
Metadata
Assignees
Labels
No labels