beamly.core.scalaz.future

FutureEither

final class FutureEither[+L, +R] extends AnyRef

A specialised version of scalaz.EitherT[Future, A, B] to cut down on the verbosity of the type.

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

Instance Constructors

  1. new FutureEither(future: Future[\/[L, R]])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +++[LL >: L, RR >: R](x: ⇒ FutureEither[LL, RR])(implicit arg0: Semigroup[LL], arg1: Semigroup[RR], ec: ExecutionContext): FutureEither[LL, RR]

    Sums up values inside disjunction, if both are left or right.

    Sums up values inside disjunction, if both are left or right. Returns first left otherwise.

    \/-(v1) +++ \/-(v2) ¬ニメ \/-(v1 + v2)
    \/-(v1) +++ -\/(v2) ¬ニメ -\/(v2)
    -\/(v1) +++ \/-(v2) ¬ニメ -\/(v1)
    -\/(v1) +++ -\/(v2) ¬ニメ -\/(v1 + v2)
  5. def :?>>[X](right: ⇒ X)(implicit ec: ExecutionContext): Switching[L, R, X]

    If this disjunction is right, return the given X value, otherwise, return the X value given to the return value.

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def ===[LL >: L, RR >: R](x: FutureEither[LL, RR])(implicit arg0: Equal[LL], arg1: Equal[RR], ec: ExecutionContext): Future[Boolean]

    Compare two disjunction values for equality.

  9. def >>[LL >: L, RR](f: ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  10. def >>=[LL >: L, RR](f: (R) ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  11. def ap[LL >: L, RR](f: ⇒ \?/[LL, (R) ⇒ RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Apply a function in the environment of the right of this disjunction.

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def bimap[LL, RR](f: (L) ⇒ LL, g: (R) ⇒ RR)(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Binary functor map on this disjunction.

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def compare[LL >: L, RR >: R](x: FutureEither[LL, RR])(implicit arg0: Order[LL], arg1: Order[RR], ec: ExecutionContext): Future[Ordering]

    Compare two disjunction values for ordering.

  16. def ensure[LL >: L](onLeft: ⇒ LL)(f: (R) ⇒ Boolean)(implicit ec: ExecutionContext): FutureEither[LL, R]

    Ensures that the right value of this disjunction satisfies the given predicate, or returns left with the given value.

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def exists(f: (R) ⇒ Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Return true if this disjunction is a right value satisfying the given predicate.

  20. def filter[LL >: L](p: (R) ⇒ Boolean)(implicit arg0: Monoid[LL], ec: ExecutionContext): FutureEither[LL, R]

    Filter on the right of this disjunction.

  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def flatFold[LL, RR](onLeft: (L) ⇒ FutureEither[LL, RR], onRight: (R) ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  23. def flatMap[LL >: L, RR](f: (R) ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  24. def flatRecover[LL >: L, RR >: R](pf: PartialFunction[L, FutureEither[LL, RR]])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  25. def fold[X](l: (L) ⇒ X, r: (R) ⇒ X)(implicit ec: ExecutionContext): Future[X]

  26. def forall(f: (R) ⇒ Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Return true if this disjunction is a left value or the right value satisfies the given predicate.

  27. def foreach(f: (R) ⇒ Unit)(implicit ec: ExecutionContext): Unit

    Run the side-effect on the right of this disjunction.

  28. val future: Future[\/[L, R]]

  29. def get(duration: Duration): \/[L, R]

  30. def get(): \/[L, R]

  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def getLeft(duration: Duration): L

  33. def getLeft(): L

  34. def getOrElse[RR >: R](default: ⇒ RR)(implicit ec: ExecutionContext): Future[RR]

    Return the right value of this disjunction or the given default if left.

    Return the right value of this disjunction or the given default if left. Alias for |

  35. def getRight(duration: Duration): R

  36. def getRight(): R

  37. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  38. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  39. def isLeft(implicit ec: ExecutionContext): Future[Boolean]

    Return true if this disjunction is left.

  40. def isRight(implicit ec: ExecutionContext): Future[Boolean]

    Return true if this disjunction is right.

  41. def leftFlatMap[LL, RR >: R](f: (L) ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

  42. def leftMap[LL](f: (L) ⇒ LL)(implicit ec: ExecutionContext): FutureEither[LL, R]

  43. def map[RR](f: (R) ⇒ RR)(implicit ec: ExecutionContext): FutureEither[L, RR]

  44. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  45. final def notify(): Unit

    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  47. def orElse[LL >: L, RR >: R](x: ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Return this if it is a right, otherwise, return the given value.

    Return this if it is a right, otherwise, return the given value. Alias for |||

  48. def recover[RR >: R](pf: PartialFunction[L, RR])(implicit ec: ExecutionContext): FutureEither[L, RR]

  49. def show[LL >: L, RR >: R](implicit arg0: Show[LL], arg1: Show[RR], ec: ExecutionContext): Future[Cord]

    Show for a disjunction value.

  50. def swap(implicit ec: ExecutionContext): FutureEither[R, L]

    Flip the left/right values in this disjunction.

    Flip the left/right values in this disjunction. Alias for swap

  51. def swapped[LL, RR](k: (\/[R, L]) ⇒ \/[RR, LL])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Run the given function on this swapped value.

    Run the given function on this swapped value. Alias for ~

  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  53. def toEither(implicit ec: ExecutionContext): Future[Either[L, R]]

    Convert to a core scala.Either at your own peril.

  54. def toList(implicit ec: ExecutionContext): Future[List[R]]

    Return an empty list or list with one element on the right of this disjunction.

  55. def toOption(implicit ec: ExecutionContext): Future[Option[R]]

    Return an empty option or option with one element on the right of this disjunction.

    Return an empty option or option with one element on the right of this disjunction. Useful to sweep errors under the carpet.

  56. def toStream(implicit ec: ExecutionContext): Future[Stream[R]]

    Return an empty stream or stream with one element on the right of this disjunction.

  57. def toString(): String

    Definition Classes
    AnyRef → Any
  58. def unary_~(implicit ec: ExecutionContext): FutureEither[R, L]

    Flip the left/right values in this disjunction.

    Flip the left/right values in this disjunction. Alias for unary_~

  59. def union[X >: R](implicit leftEv: <:<[L, X], ec: ExecutionContext): Future[X]

  60. def validation(implicit ec: ExecutionContext): Future[Validation[L, R]]

    Convert to a validation.

  61. def validationed[LL, RR](k: (Validation[L, R]) ⇒ Validation[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Run a validation function and back to disjunction again.

  62. def valueOr[RR >: R](x: (L) ⇒ RR)(implicit ec: ExecutionContext): Future[RR]

    Return the right value of this disjunction or run the given function on the left.

  63. def valueOrThrow(implicit ev: <:<[L, Throwable], ec: ExecutionContext): Future[R]

  64. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. def |[RR >: R](default: ⇒ RR)(implicit ec: ExecutionContext): Future[RR]

    Return the right value of this disjunction or the given default if left.

    Return the right value of this disjunction or the given default if left. Alias for getOrElse

  68. def |||[LL >: L, RR >: R](x: ⇒ FutureEither[LL, RR])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Return this if it is a right, otherwise, return the given value.

    Return this if it is a right, otherwise, return the given value. Alias for orElse

  69. def ~[LL, RR](k: (\/[R, L]) ⇒ \/[RR, LL])(implicit ec: ExecutionContext): FutureEither[LL, RR]

    Run the given function on this swapped value.

    Run the given function on this swapped value. Alias for swapped

Inherited from AnyRef

Inherited from Any

Ungrouped