union

static GenericFutureListener<? extends Future<? extends Object>> union<A extends Future<? extends Object>, B extends Future<? extends Object>>(GenericFutureListener<A> first, GenericFutureListener<B> second)

Combines two future listeners.

Return

the combined future listener.

Parameters

first

the first future listener

second

the second future listener

<A>

the future type of the first listener, used for casting

<B>

the future type of the second listener, used for casting

Sources

jvm source
Link copied to clipboard