package monad
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- case class Canceler(cancel: () => Unit) extends Product with Serializable
- class FutureMonad extends MonadAsyncError[Future]
- trait MonadAsyncError[F[_]] extends MonadError[F]
- trait MonadError[F[_]] extends AnyRef
A basic monad interface, allowing abstract manipulation of effectful values, represented using the type constructor
F
.A basic monad interface, allowing abstract manipulation of effectful values, represented using the type constructor
F
.A computation yielding results of type
T
is represented as a value of typeF[T]
. Such values: * can be transformed usingmap
* can be run in sequence usingflatMap
* errors can be handled usinghandleError
* and new computations can be created usingunit
,eval
andsuspend
To use convenient
.map
,.flatMap
syntax, make sure an implicit instance ofMonadError
is in scope, and import:import sttp.monad.syntax._
. This adds the appropriate extension methods.
Value Members
- object EitherMonad extends MonadError[[β$0$]Either[Throwable, β$0$]]
- object MonadError
- object TryMonad extends MonadError[Try]
- object syntax