callbackOption

japgolly.scalajs.react.util.EffectCallback$.callbackOption$
object callbackOption extends Dispatch[CallbackOption]

Attributes

Graph
Supertypes
trait Dispatch[CallbackOption]
trait Effect[CallbackOption]
trait Monad[CallbackOption]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

override def delay[A](a: => A): CallbackOption[A]

Attributes

Definition Classes
Effect
override def dispatch[A](fa: CallbackOption[A]): Unit

Fire and forget, could be sync or async

Fire and forget, could be sync or async

Attributes

Definition Classes
Dispatch
override def dispatchFn[A](fa: => CallbackOption[A]): Function0[Unit]

Attributes

Definition Classes
Dispatch
override def finallyRun[A, B](fa: => CallbackOption[A], runFinally: => CallbackOption[B]): CallbackOption[A]

Wraps this callback in a try-finally block and runs the given callback in the finally clause, after the current callback completes, be it in error or success.

Wraps this callback in a try-finally block and runs the given callback in the finally clause, after the current callback completes, be it in error or success.

Attributes

Definition Classes
Effect
override def flatMap[A, B](fa: CallbackOption[A])(f: A => CallbackOption[B]): CallbackOption[B]

Attributes

Definition Classes
Monad
override def handleError[A, AA >: A](fa: => CallbackOption[A])(f: Throwable => CallbackOption[AA]): CallbackOption[AA]

Attributes

Definition Classes
Effect
override def map[A, B](fa: CallbackOption[A])(f: A => B): CallbackOption[B]

Attributes

Definition Classes
Monad
override def pure[A](a: A): CallbackOption[A]

Attributes

Definition Classes
Monad
override def suspend[A](fa: => CallbackOption[A]): CallbackOption[A]

Attributes

Definition Classes
Effect
override def tailrec[A, B](a: A)(f: A => CallbackOption[Either[A, B]]): CallbackOption[B]

Attributes

Definition Classes
Monad

Inherited methods

final def chain[A, B, C, D](fa: CallbackOption[A], fb: CallbackOption[B], fc: CallbackOption[C], fd: CallbackOption[D]): F[D]

Attributes

Inherited from:
Monad
final def chain[A, B, C](fa: CallbackOption[A], fb: CallbackOption[B], fc: CallbackOption[C]): F[C]

Attributes

Inherited from:
Monad
def chain[A, B](fa: CallbackOption[A], fb: CallbackOption[B]): F[B]

Attributes

Inherited from:
Monad
final def throwException[A](t: Throwable): F[A]

Attributes

Inherited from:
Effect