EffectAOps

final implicit
class EffectAOps[F[_], A](self: F[A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def runAsync(cb: Either[Throwable, A] => F[Unit])(implicit F: MonadError[F, Throwable], dispatcher: Dispatch[F]): CallbackTo[Unit]

Return a DefaultS[Unit] that will run the effect F[A] asynchronously.

Return a DefaultS[Unit] that will run the effect F[A] asynchronously.

Value Params
cb

Result handler returning a F[Unit].

def runAsyncAndForget(implicit F: MonadError[F, Throwable], dispatcherF: Dispatch[F]): CallbackTo[Unit]

Return a DefaultS[Unit] that will run the effect F[A] asynchronously and discard the result or errors.

Return a DefaultS[Unit] that will run the effect F[A] asynchronously and discard the result or errors.

def runAsyncAndThen(cb: Either[Throwable, A] => CallbackTo[Unit])(implicit F: Sync[F], dispatcherF: Dispatch[F], dispatchS: UnsafeSync[Sync]): CallbackTo[Unit]

Return a DefaultS[Unit] that will run the effect F[A] asynchronously.

Return a DefaultS[Unit] that will run the effect F[A] asynchronously.

Value Params
cb

Result handler returning a DefaultS[Unit].