Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions strongback/src/org/strongback/SwitchReactor.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ default public void onTriggeredSubmit(Switch swtch, Supplier<Command> commandSup
* @param commandSupplier the supplier of the command to submit; may not be null but may return a null command
*/
default public void onUntriggeredSubmit(Switch swtch, Supplier<Command> commandSupplier) {
onTriggered(swtch,()->Strongback.submit(commandSupplier.get()));
onUntriggered(swtch,()->Strongback.submit(commandSupplier.get()));
}

/**
Expand Down Expand Up @@ -93,4 +93,4 @@ default public void onUntriggeredSubmit(Switch swtch, Supplier<Command> commandS
* @param function the function to execute while the switch remains untriggered
*/
public void whileUntriggered(Switch swtch, Runnable function);
}
}