FutureAsyncMonad

given FutureAsyncMonad(using `x$1`: ExecutionContext): CpsSchedulingMonad[[T] =>> Future[T]]
Companion
object

Type members

Types

type F[+T] = Future[T]
override type WF[T] = Future[T]

Value members

Concrete methods

def adoptCallbackStyle[A](source: Try[A] => Unit => Unit): Future[A]
def error[A](e: Throwable): Future[A]
def executionContext: ExecutionContext
def flatMap[A, B](fa: Future[A])(f: A => Future[B]): Future[B]
def flatMapTry[A, B](fa: Future[A])(f: Try[A] => Future[B]): Future[B]
def fulfill[T](t: Future[T], timeout: Duration): Option[Try[T]]
def map[A, B](fa: Future[A])(f: A => B): Future[B]
override def mapTry[A, B](fa: Future[A])(f: Try[A] => B): Future[B]
Definition Classes
def pure[T](t: T): Future[T]
override def restore[A](fa: Future[A])(fx: Throwable => Future[A]): Future[A]
Definition Classes
def spawn[A](op: => Future[A]): Future[A]

Inherited methods

def tryImpure[A](a: => Future[A]): Future[A]
Inherited from
CpsTryMonad
def tryPure[A](a: => A): Future[A]
Inherited from
CpsTryMonad
def withAction[A](fa: Future[A])(action: => Unit): Future[A]
Inherited from
CpsTryMonad
def withAsyncAction[A](fa: Future[A])(action: => Future[Unit]): Future[A]
Inherited from
CpsTryMonad