com.gilt.gfc.guava

future

package future

Visibility
  1. Public
  2. All

Type Members

  1. trait CheckedFutureImpl[T, X <: Exception] extends FutureImpl[T] with ListenableFutureImpl[T] with CheckedFuture[T, X]

    Stub implementation of the CheckedFuture interface.

  2. abstract class FutureImpl[T] extends Future[T]

    Stub implementation of the Future interface.

  3. trait ListenableFutureImpl[T] extends FutureImpl[T] with ListenableFuture[T]

    Stub implementation of the ListenableFuture interface.

  4. case class RichListenableFuture[T](future: ListenableFuture[T]) extends Product with Serializable

Value Members

  1. object FutureConverters

    Implicit converters between Scala Future and Guava (Listenable/Checked)Future

    Implicit converters between Scala Future and Guava (Listenable/Checked)Future

    Since

    07/Jul/2014 15:07

  2. object GuavaFutures

    Rich wrapper providing a monadic interface to Guava ListenableFuture.

    Rich wrapper providing a monadic interface to Guava ListenableFuture.

    Checked future is slightly harder but may be possible; we can try to add that at some point.

    To use, import GuavaFutures._. This will bring an implicit into scope which will wrap a ListenableFuture with a RichListenableFuture, which provides the standard monadic operations (map, flatMap, foreach & withFilter) for ListenableFuture. See the tests for some examples how to use. This is basically to bring some of the benefits of Akka futures to Guava.

    Since

    3.0.0

Ungrouped