CpsSchedulingMonad

trait CpsSchedulingMonad[F[_]] extends CpsAsyncMonad[F]

Interoperability with Future: allows async[F]{ .. awaitFuture ... }

Interoperability with Future: allows async[F]{ .. awaitFuture ... }

trait CpsAsyncMonad[F]
trait CpsTryMonad[F]
trait CpsMonad[F]
class Object
trait Matchable
class Any

Type members

Inherited types

type WF[X] = F[X]
Inherited from
CpsMonad

Value members

Abstract methods

def spawn[A](op: => F[A]): F[A]

schedule execution of op somewhere. Note, that characteristics of scheduler can vary.

schedule execution of op somewhere. Note, that characteristics of scheduler can vary.

Inherited methods

def adoptCallbackStyle[A](source: Try[A] => Unit => Unit): F[A]

called by the source, which accept callback. source is called immediately in adoptCallbackStyle

called by the source, which accept callback. source is called immediately in adoptCallbackStyle

Inherited from
CpsAsyncMonad
def error[A](e: Throwable): F[A]
Inherited from
CpsTryMonad
def flatMap[A, B](fa: F[A])(f: A => F[B]): F[B]
Inherited from
CpsMonad
def flatMapTry[A, B](fa: F[A])(f: Try[A] => F[B]): F[B]
Inherited from
CpsTryMonad
def map[A, B](fa: F[A])(f: A => B): F[B]
Inherited from
CpsMonad
def mapTry[A, B](fa: F[A])(f: Try[A] => B): F[B]
Inherited from
CpsTryMonad
def pure[T](t: T): F[T]
Inherited from
CpsMonad
def restore[A](fa: F[A])(fx: Throwable => F[A]): F[A]
Inherited from
CpsTryMonad
def tryImpure[A](a: => F[A]): F[A]
Inherited from
CpsTryMonad
def tryPure[A](a: => A): F[A]
Inherited from
CpsTryMonad
def withAction[A](fa: F[A])(action: => Unit): F[A]
Inherited from
CpsTryMonad
def withAsyncAction[A](fa: F[A])(action: => F[Unit]): F[A]
Inherited from
CpsTryMonad