Callback

de.rmgk.delay$.Callback
@FunctionalInterface
trait Callback[-A]

A callback that also handles failure.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Promise[T]

Members list

Concise view

Value members

Abstract methods

def complete(res: Either[Throwable, A]): Unit

Concrete methods

inline def complete(tr: Try[A]): Unit
def fail(ex: Throwable): Unit
def succeed(value: A): Unit