CompletableFuture (original) (raw)

Doug Lea dl at cs.oswego.edu
Tue Nov 27 09:20:23 PST 2012


This is not part of lambda-libs proper, but is a lambda-dependent j.u.c class -- the last item of our jsr166 JDK8 todo list (see JEP155 http://openjdk.java.net/jeps/155), so it would be great to get some preliminary feedback on this here.

Thanks especially to Sam for bugging me to get this going.

This is the class that has variously been called FutureValue, SettableFuture, Promise, and other names. Since the focus is on possibly-async completions/callbacks, unifying the terminology around "complete" gives a big hint about usage. In some senses it is the less geeky, more limited, non-FJ variant of CountedCompleter (that I confess to loving much more but is vastly less obvious to use effectively.)

/**

}



More information about the lambda-libs-spec-observers mailing list