public abstract class UnitSlot extends Slot<Object> implements Runnable
| Constructor and Description |
|---|
UnitSlot() |
| Modifier and Type | Method and Description |
|---|---|
UnitSlot |
andThen(UnitSlot after)
Returns a new slot that invokes this slot and then evokes
after. |
abstract void |
onEmit()
Called when a signal to which this slot is connected has emitted an event.
|
void |
onEmit(Object event)
Called when a signal to which this slot is connected has emitted an event.
|
void |
run() |
static UnitSlot |
toSlot(Runnable runnable)
Wraps the supplied runnable in a
UnitSlot. |
public abstract void onEmit()
public UnitSlot andThen(UnitSlot after)
after.public final void onEmit(Object event)
SignalView.ListeneronEmit in interface SignalView.Listener<Object>event - the event emitted by the signal.Copyright © 2017. All rights reserved.