Package io.reactivex.netty

Examples of io.reactivex.netty.NoOpChannelHandlerContext.newPromise()


public class MultipleFutureListenerTest {

    @Test
    public void testCompletionWhenNoFuture() throws Exception {
        NoOpChannelHandlerContext context = new NoOpChannelHandlerContext();
        MultipleFutureListener listener = new MultipleFutureListener(context.newPromise());
        final CountDownLatch completionLatch = new CountDownLatch(1);
        listener.asObservable().doOnTerminate(new Action0() {
            @Override
            public void call() {
                completionLatch.countDown();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.