8000 Merge pull request #279 from jackdempsey/update_futures_with_missing_… · techaddict/scala.github.com@40f76f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40f76f2

Browse files
committed
Merge pull request scala#279 from jackdempsey/update_futures_with_missing_value_import
import Success and Failure values near where they are used (needed for s...
2 parents 06cad3e + 3c7adfb commit 40f76f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

overviews/core/_posts/2012-09-20-futures.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ fetch a list of our own recent posts and render them to the screen.
177177
We do so by calling a method `getRecentPosts` which returns
178178
a `List[String]`-- a list of recent textual posts:
179179

180+
import scala.util.{Success, Failure}
181+
180182
val f: Future[List[String]] = future {
181183
session.getRecentPosts
182184
}

0 commit comments

Comments
 (0)
0