Skip to content

Commit

Permalink
events/NeptusEvents: Created unregister method with single argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-paz committed Jan 7, 2025
1 parent 3bc3772 commit 5969189
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/java/pt/lsts/neptus/events/NeptusEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ public static void register(Object object, ConsoleLayout console) {
}
}

/**
* Unregister for the GLOBAL synchronous event bus
*
* @param object
*/
public static void unregister(Object object) {
INSTANCE.eventBus.unregister(object);
}

/**
* Unregister for the given console asynchronous event bus
*
Expand Down

0 comments on commit 5969189

Please sign in to comment.