abstract classCallback[-A] extends Listener[A] with (Try[A]) ⇒ Unit
Represents a callback that should be called asynchronously
with the result of a computation. Used by Task to signal
the completion of asynchronous computations on runAsync.
The onSuccess method should be called only once, with the successful
result, whereas onError should be called if the result is an error.
Linear Supertypes
(Try[A]) ⇒ Unit, Listener[A], Serializable, Serializable, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
Callback
Function1
Listener
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newCallback()
Abstract Value Members
abstract defonError(ex: Throwable): Unit
abstract defonSuccess(value: A): Unit
Concrete Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
defandThen[A](g: (Unit) ⇒ A): (Try[A]) ⇒ A
Definition Classes
Function1
Annotations
@unspecialized()
final defapply(result: Either[Throwable, A]): Unit
Represents a callback that should be called asynchronously with the result of a computation. Used by Task to signal the completion of asynchronous computations on
runAsync
.The
onSuccess
method should be called only once, with the successful result, whereasonError
should be called if the result is an error.