sanpwc commented on a change in pull request #149:
URL: https://github.com/apache/ignite-3/pull/149#discussion_r641663166
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/manager/Producer.java
##########
@@ -42,6 +42,17 @@ public void listen(T evt, BiPredicate<P, Throwable> closure)
{
.offer(closure);
}
+ /**
+ * Removes a listener associated with the event.
+ *
+ * @param evt Event.
+ * @param closure Closure.
+ */
+ public void removeListener(T evt, BiPredicate<P, Throwable> closure) {
+ listeners.computeIfAbsent(evt, evtKey -> new ConcurrentLinkedQueue<>())
Review comment:
ifPresent?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]