CpsFulfillingMonad

trait CpsFulfillingMonad[F[_]] extends CpsAsyncMonad[F]
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 fulfill[T](t: F[T], timeout: Duration): Option[Try[T]]

block until monad will be finished or timeout will be expired. Note, that using this operation inside async is dangerous.

block until monad will be finished or timeout will be expired. Note, that using this operation inside async is dangerous.

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