You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/05/28 16:08:57 UTC

[GitHub] [ignite-3] sanpwc commented on a change in pull request #149: IGNITE-14773 Implement a method which can get a table or wait until i…

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:
users@infra.apache.org