[concurrency-interest] How to subclass CompletableFuture?
kasperni at gmail.com
Mon Oct 27 01:44:41 EDT 2014
I've found CompletableFuture impossible to extend. Mainly because all the
methods returns new instances of CompletableFuture. Where you probably want
to return new instances of your CompletableFutureSubClass.
So I think the proper way is using composition. However with all the
methods in CompletableStage it takes some determination.
On Mon, Oct 27, 2014 at 3:21 AM, cowwoc <cowwoc at bbs.darktech.org> wrote:
> I believe that CompletableFuture was designed to allow for subclassing but
> can't seem to figure out how to implement such a subclass:
> I figured if anyone would know how to implement this kind of thing, it
> be you :)
> View this message in context:
> Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest