netty/netty — Issue #153: ChannelFuture.rethrowIfFailed()
Author: trustin
Created: 2012-01-19 04:33:09+00:00
State: open

Typical idiom I see is:

ChannelFuture f = ...;
f.await();
if (f.isFailure()) {
throw new SomeException(f.getCause());
}
...

For some code, a user could do like the following:

f.await().rethrowIfFailed();