Created
August 4, 2014 06:51
-
-
Save daschl/16ee6a6ba59367aeabe6 to your computer and use it in GitHub Desktop.
netty shutdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ioPool.shutdownGracefully().addListener(new GenericFutureListener<Future<?>>() { | |
@Override | |
public void operationComplete(Future<?> future) throws Exception { | |
System.err.println(future.isSuccess()); | |
} | |
}); | |
Error:(66, 49) java: incompatible types: <anonymous io.netty.util.concurrent.GenericFutureListener | |
<io.netty.util.concurrent.Future<?>>> cannot be converted to io.netty.util.concurrent.GenericFutureListener<? e | |
xtends io.netty.util.concurrent.Future<? super capture#1 of ?>> | |
And with that: | |
return Observable.from(ioPool.shutdownGracefully()).map(new Func1<Object, Boolean>() { | |
@Override | |
public Boolean call(Object o) { | |
return null; | |
} | |
}); | |
I get null back for my object... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment