asyncCallback

japgolly.scalajs.react.util.EffectCallback$.asyncCallback$
object asyncCallback extends Async[AsyncCallback], WithDefaults[AsyncCallback]

Attributes

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

Members list

Value members

Concrete methods

override def async[A](fa: () => A): AsyncCallback[A]

Attributes

Definition Classes
Async
override def async_(onCompletion: Function0[Unit] => Function0[Unit]): AsyncCallback[Unit]

Attributes

Definition Classes
Async
override def delay[A](a: => A): AsyncCallback[A]

Attributes

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

Fire and forget, could be sync or async

Fire and forget, could be sync or async

Attributes

Definition Classes
Dispatch
override def finallyRun[A, B](fa: => AsyncCallback[A], runFinally: => AsyncCallback[B]): AsyncCallback[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 first[A](f: () => A): AsyncCallback[A]

Attributes

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

Attributes

Definition Classes
Monad
override def fromJsPromise[A](pa: => Thenable[A]): AsyncCallback[A]

Attributes

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

Attributes

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

Attributes

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

Attributes

Definition Classes
Monad
override def runAsync[A](fa: => AsyncCallback[A]): () => A

Attributes

Definition Classes
Async
override def suspend[A](fa: => AsyncCallback[A]): AsyncCallback[A]

Attributes

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

Attributes

Definition Classes
Monad
override def toJsPromise[A](fa: => AsyncCallback[A]): () => Promise[A]

Attributes

Definition Classes
Async

Inherited methods

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Monad
override def dispatchFn[A](fa: => AsyncCallback[A]): Function0[Unit]

Attributes

Definition Classes
WithDefaults -> Dispatch
Inherited from:
WithDefaults
final def subst[G[_], X[_[_]]](xg: X[G])(xf: => X[AsyncCallback])(implicit g: Async[G]): X[F]

Attributes

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

Attributes

Inherited from:
Effect
final def transAsync[G[_], A](ga: => G[A])(implicit g: Async[G]): F[A]

Attributes

Inherited from:
Async