[concurrency-interest] ImmediateFuture

karlthepagan karlthepagan at gmail.com
Wed Jun 17 14:50:43 EDT 2009

I have also implemented both CompletedFuture and FailedFuture.

I've not used failed outside test and have only seen a rare practical use
for the completed version. One use was a stand-in for a reference to a
scheduled task. For the general implementation RunnableScheduledFuture or at
lest ScheduledFuture should be considered (where getDelay would always
return 0 and compare would behave accordingly).


On Wed, Jun 17, 2009 at 10:14 AM, Gregg Wonderly <gregg at cytetech.com> wrote:

> And yes, it would be nice to have a class in the JDK that was such an
> implementation of Future.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20090617/e43bff3f/attachment.html>

More information about the Concurrency-interest mailing list