Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in README #100

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -918,7 +918,7 @@ A more complex variation of scatter/gather pattern is to perform a sequence of a


import com.twitter.finagle.util.Timer._ import com.twitter.finagle.util.Timer._


val results: Seq[Future[Result]] = partitions.map { partition => val timedResults: Seq[Future[Result]] = partitions.map { partition =>
partition.get(query).within(1.second) handle { partition.get(query).within(1.second) handle {
case _: TimeoutException => EmptyResult case _: TimeoutException => EmptyResult
} }
Expand All @@ -941,7 +941,7 @@ A `FuturePool` object enables you to place a blocking operation on its own threa
val diskIoFuturePool = FuturePool(Executors.newFixedThreadPool(4)) val diskIoFuturePool = FuturePool(Executors.newFixedThreadPool(4))


def apply(path: String) = { def apply(path: String) = {
val blockingOperation = { def blockingOperation = {
scala.Source.fromFile(path) // potential to block scala.Source.fromFile(path) // potential to block
} }
// give this blockingOperation to the future pool to execute // give this blockingOperation to the future pool to execute
Expand Down