com.paypal.cascade.common

future

package future

Convenience methods and implicits for working with Futures.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. future
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class RichFuture[T] extends AnyRef

    Implicits to provide slightly cleaner patterns for handling Futures

    Implicits to provide slightly cleaner patterns for handling Futures

    import com.paypal.cascade.common.future._
    val f = Future { ... }
    f.mapFailure { case e: SomeThrowable => ... }
    T

    the type of the future

Value Members

  1. def sequentialExecutionContext(logger: Logger): ExecutionContext

    An scala.concurrent.ExecutionContext that runs tasks immediately, and logs errors to the given logger.

    An scala.concurrent.ExecutionContext that runs tasks immediately, and logs errors to the given logger. This context is useful for mapping functions that are cheap to compute (ie: simple transformations, etc)

    logger

    the logger to which to log errors

    returns

    the new scala.concurrent.ExecutionContext

Inherited from AnyRef

Inherited from Any

Ungrouped