EitherTHelper

uk.gov.hmrc.apiplatform.modules.common.services.EitherTHelper
See theEitherTHelper companion object
trait EitherTHelper[E](using val ec: ExecutionContext)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def cond[A](in: => Boolean, right: => A, left: => E): EitherT[Future, E, A]
def fromEither[A](in: Either[E, A]): EitherT[Future, E, A]
def fromEitherF[A](in: Future[Either[E, A]]): EitherT[Future, E, A]
def fromOption[A](in: Option[A], error: => E): EitherT[Future, E, A]
def fromOptionF[A](in: Future[Option[A]], error: => E): EitherT[Future, E, A]
def fromOptionM[A](in: Future[Option[A]], error: => Future[E]): EitherT[Future, E, A]
def fromValidated[A](in: Validated[E, A]): EitherT[Future, E, A]
def fromValidatedF[A](in: Future[Validated[E, A]]): EitherT[Future, E, A]
def leftT[R](err: E): EitherT[Future, E, R]
def liftF[A](in: Future[A]): EitherT[Future, E, A]
def pure[A](in: A): EitherT[Future, E, A]

Givens

Givens

given ec: ExecutionContext