Alias for >>
.
Alias for >>
.
Where >>
is often associated with Monads, *>
is often associated with Applicatives.
Sequence actions, discarding the value of the second argument.
Sequence a CallbackKleisli to run before this, discarding any value produced by it.
Sequence a CallbackKleisli to run before this, discarding any value produced by it.
Convenient version of <<
that accepts an Option
Alias for tap
.
Alias for tap
.
Sequence a CallbackKleisli to run after this, discarding any value produced by this.
Alias for flatMap
.
Alias for flatMap
.
Wraps this callback in a try-catch and returns either the result or the exception if one occurs.
Wraps this callback in a scala Try
with catches what it considers non-fatal errors.
Wraps this callback in a scala Try
with catches what it considers non-fatal errors.
Use attempt to catch everything.
Discard the callback's return value, return a given value instead.
Discard the callback's return value, return a given value instead.
ret
, short for return
.
When the callback result becomes available, perform a given side-effect with it.
Discard the value produced by this callback.
Discard the value produced by this callback.
Discard the value produced by this callback.
This method allows you to be explicit about the type you're discarding (which may change in future).
Alias for map
.
Alias for map
.
A => CallbackTo[B]
akaKleisli[CallbackTo, A, B]
akaReaderT[A, CallbackTo, B]
.Never heard of Kleisli? Basically, a "Kleisli triple" is a function with the shape
A => M[B]
. In this case, theM
is hard-coded toCallbackTo
.This is hard-coded to
CallbackTo
for the same reasons as CallbackOption and for the same reasons that CallbackTo exists.1.2.0