Skip to content

Instantly share code, notes, and snippets.

@daschl
Created August 4, 2014 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daschl/16ee6a6ba59367aeabe6 to your computer and use it in GitHub Desktop.
Save daschl/16ee6a6ba59367aeabe6 to your computer and use it in GitHub Desktop.
netty shutdown
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