Skip to content

Commit 4ebe325

Browse files
committed
- Added inline code comments to improve maintainability
1 parent ede37bd commit 4ebe325

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

data-bus/src/main/java/com/iluwatar/databus/DataBus.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public void unsubscribe(final Member member) {
6565
*
6666
* @param event The event
6767
*/
68+
69+
/**
70+
* Publishes an event to all subscribed members.
71+
* @param event The data event to be sent.
72+
*/
6873
public void publish(final DataType event) {
6974
event.setDataBus(this);
7075
listeners.forEach(listener -> listener.accept(event));

0 commit comments

Comments
 (0)