|
|
@ -17,8 +17,6 @@ package org.redisson.pubsub;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.LinkedHashSet;
|
|
|
|
import java.util.LinkedHashSet;
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
|
|
|
import java.util.Queue;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
import java.util.Set;
|
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
|
|
|
|
|
|
|
|
|
@ -58,6 +56,12 @@ public class AsyncSemaphore {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void removeListeners() {
|
|
|
|
|
|
|
|
synchronized (this) {
|
|
|
|
|
|
|
|
listeners.clear();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void acquire(Runnable listener) {
|
|
|
|
public void acquire(Runnable listener) {
|
|
|
|
boolean run = false;
|
|
|
|
boolean run = false;
|
|
|
|
|
|
|
|
|
|
|
|