RichFuture

fm.common.rich.RichFuture
See theRichFuture companion object
final class RichFuture[A] extends AnyVal

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def isFailure: Boolean

Returns whether the future has been completed with a Failure

Returns whether the future has been completed with a Failure

Attributes

def isSuccess: Boolean

Returns whether the future has been completed with a Success

Returns whether the future has been completed with a Success

Attributes

def mapTry[B](f: Try[A] => B)(implicit ec: ExecutionContext): Future[B]

Alias for .mapValue

Alias for .mapValue

Attributes

def mapValue[B](f: Try[A] => B)(implicit ec: ExecutionContext): Future[B]

Like .map but allows you to map the Try[A] value instead of only a successful result

Like .map but allows you to map the Try[A] value instead of only a successful result

Attributes

Concrete fields

val self: Future[A]