implicit final class FutureExtensions[T] extends AnyVal
Provides utility methods added on Scala's concurrent.Future
- Source
- FutureUtils.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FutureExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
dematerialize[U](implicit ev: <:<[T, Try[U]], ec: ExecutionContext): Future[U]
FutureUtils.dematerialize exposed as an extension method.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
materialize(implicit ec: ExecutionContext): Future[Try[T]]
FutureUtils.materialize exposed as an extension method.
- val source: Future[T]
-
def
timeout(atMost: FiniteDuration)(implicit s: Scheduler): Future[T]
FutureUtils.timeout exposed as an extension method.
-
def
timeoutTo[U >: T](atMost: FiniteDuration, fallback: ⇒ Future[U])(implicit s: Scheduler): Future[U]
FutureUtils.timeoutTo exposed as an extension method.
-
def
toString(): String
- Definition Classes
- Any
-
def
transformWith[S](f: (Try[T]) ⇒ Future[S])(implicit ec: ExecutionContext): Future[S]
FutureUtils.transformWith exposed as an extension method.
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.