Sounds like you want http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/util/concurrent/SettableFuture.html probably?
Hey guys,
I have an asynchronous apit which I am trying to "mock" for testing purposes.
I plan to call
Futures.addCallback(Future, Callback) in order to add a callback, but I need an empty ListenableFuture in order to call that.
Perhaps I am mis-understanding the future object. If so, please enlighten me.
--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask (use the tag "guava")