Modifier and Type | Class and Description |
---|---|
class |
UnitSlot
A
Slot for use when the type of emitted signal is ignored. |
Modifier and Type | Method and Description |
---|---|
<S extends T> |
Slot.andThen(Slot<? super S> after)
Returns a new slot that invokes this slot and then evokes
after . |
Slot<Try<T>> |
RPromise.completer()
Returns a slot that can be used to complete this promise.
|
<S> Slot<S> |
Slot.compose(Function<S,T> f)
Returns a slot that maps values via
f and then passes them to this slot. |
Slot<Throwable> |
RPromise.failer()
Returns a slot that can be used to
RPromise.fail(java.lang.Throwable) this promise. |
<S extends T> |
Slot.filtered(Function<? super S,Boolean> pred)
Returns a slot that is only notified when the signal to which this slot is connected emits a
value which causes
pred to return true. |
Slot<T> |
Signal.slot()
Returns a slot which can be used to wire this signal to the emissions of a
Signal or
another value. |
Slot<T> |
Value.slot()
Returns a slot which can be used to wire this value to the emissions of a
Signal or
another value. |
Slot<T> |
RPromise.succeeder()
Returns a slot that can be used to
RPromise.succeed(T) this promise. |
static <T> Slot<T> |
Slots.trace(String message,
Slot<T> slot)
Returns a slot that logs the supplied message (via
System.err ) with the emitted
value appended to it before passing the emitted value on to slot . |
Modifier and Type | Method and Description |
---|---|
<S extends T> |
Slot.andThen(Slot<? super S> after)
Returns a new slot that invokes this slot and then evokes
after . |
Connection |
AbstractValue.connect(Slot<? super T> slot) |
Connection |
ValueView.connect(Slot<? super T> listener)
Connects the supplied listener to this value, such that it will be notified when this value
changes.
|
Connection |
AbstractValue.connectNotify(Slot<? super T> slot) |
Connection |
ValueView.connectNotify(Slot<? super T> listener)
Connects the supplied listener to this value, such that it will be notified when this value
changes.
|
static <T> Slot<T> |
Slots.trace(String message,
Slot<T> slot)
Returns a slot that logs the supplied message (via
System.err ) with the emitted
value appended to it before passing the emitted value on to slot . |
Copyright © 2017. All rights reserved.