ReadTryChannelCpsMonad

given ReadTryChannelCpsMonad[F[_]](using val x$1: Gopher[F]): CpsAsyncMonad[[A] =>> ReadChannel[F, Try[A]]]

Type members

Types

type FW[T] = [A] =>> ReadChannel[F, Try[A]]

Inherited types

type WF[X] = F[X]
Inherited from
CpsMonad
Source
CpsMonad.scala

Value members

Concrete methods

def adoptCallbackStyle[A](source: Try[A] => Unit => Unit): ReadChannel[F, Try[A]]
def error[A](e: Throwable): ReadChannel[F, Try[A]]
def flatMap[A, B](fa: ReadChannel[F, Try[A]])(f: A => ReadChannel[F, Try[B]]): ReadChannel[F, Try[B]]
def flatMapTry[A, B](fa: ReadChannel[F, Try[A]])(f: Try[A] => ReadChannel[F, Try[B]]): ReadChannel[F, Try[B]]
def map[A, B](fa: ReadChannel[F, Try[A]])(f: A => B): ReadChannel[F, Try[B]]
def pure[T](t: T): ReadChannel[F, Try[T]]

Inherited methods

def fromTry[A](r: Try[A]): ReadChannel[F, Try[A]]
Inherited from
CpsTryMonad
Source
CpsMonad.scala
def mapTry[A, B](fa: ReadChannel[F, Try[A]])(f: Try[A] => B): ReadChannel[F, Try[B]]

map over result of checked evaluation of A

map over result of checked evaluation of A

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def mapTryAsync[A, B](fa: ReadChannel[F, Try[A]])(f: Try[A] => ReadChannel[F, Try[B]]): ReadChannel[F, Try[B]]

synonym for flatMapTry needed for processing awaits inside mapTry.

synonym for flatMapTry needed for processing awaits inside mapTry.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def restore[A](fa: ReadChannel[F, Try[A]])(fx: Throwable => ReadChannel[F, Try[A]]): ReadChannel[F, Try[A]]

restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.

restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def tryImpure[A](a: => ReadChannel[F, Try[A]]): ReadChannel[F, Try[A]]

try to evaluate async operation and wrap successful or failed result into F.

try to evaluate async operation and wrap successful or failed result into F.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def tryPure[A](a: => A): ReadChannel[F, Try[A]]

try to evaluate synchonious operation and wrap successful or failed result into F.

try to evaluate synchonious operation and wrap successful or failed result into F.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def tryPureAsync[A](a: () => ReadChannel[F, Try[A]]): ReadChannel[F, Try[A]]

async shift of tryPure.

async shift of tryPure.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def withAction[A](fa: ReadChannel[F, Try[A]])(action: => Unit): ReadChannel[F, Try[A]]

ensure that action will run before getting value from fa

ensure that action will run before getting value from fa

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def withActionAsync[A](fa: ReadChannel[F, Try[A]])(action: () => ReadChannel[F, Try[Unit]]): ReadChannel[F, Try[A]]

async shift of withAction.

async shift of withAction.

This method is substituted instead withAction, when we use await inside withAction argument.

Inherited from
CpsTryMonad
Source
CpsMonad.scala
def withAsyncAction[A](fa: ReadChannel[F, Try[A]])(action: => ReadChannel[F, Try[Unit]]): ReadChannel[F, Try[A]]

return result of fa after completition of action.

return result of fa after completition of action.

Inherited from
CpsTryMonad
Source
CpsMonad.scala

Concrete fields

protected
val x$1: Gopher[F]