io.fsq.common.concurrent
PoolJumper is a utility used in a for comprehension of futures that can control the execution context of the yield block
PoolJumper implements the interface for Futures.runYieldInPool, used in the following example
xF, yF might be finagle futures, runYieldInPool will run doBlockingWork in a safe execution context.
for { x <- xF y <- yF _ <- Futures.runYieldInPool(pool) } yield doBlockingWork
PoolJumper is a utility used in a for comprehension of futures that can control the execution context of the yield block
PoolJumper implements the interface for Futures.runYieldInPool, used in the following example
xF, yF might be finagle futures, runYieldInPool will run doBlockingWork in a safe execution context.
for { x <- xF y <- yF _ <- Futures.runYieldInPool(pool) } yield doBlockingWork