Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[split] Finagle: Make blockingOperation in FuturePool example lazy.

Using a val in the example nullifies the intended parallelism. Made
`blockingOperation` a def to exemplify lazy evalution.

  • Loading branch information...
commit 2df9b0b213fef0358ff870d414b7a3bab5d9fee1 1 parent bda6633
@evnm evnm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -941,7 +941,7 @@ A `FuturePool` object enables you to place a blocking operation on its own threa
val diskIoFuturePool = FuturePool(Executors.newFixedThreadPool(4))
def apply(path: String) = {
- val blockingOperation = {
+ def blockingOperation = {
scala.Source.fromFile(path) // potential to block
// give this blockingOperation to the future pool to execute
Please sign in to comment.
Something went wrong with that request. Please try again.