Closed GoogleCodeExporter closed 9 years ago
if you don't call the normal listeners then you are risking deadlock when
downstream transforms,listeners,callbacks, etc. never get informed that the
future is completed.
How is expiry different from cancellation? what is your usecase?
if you just want listeners that are only called on cancellation you can do this
with a simple delegate
e.g.
void addExpiryListener(Runnable r, Executor e) {
addListner(new Runnable() {
@Override public void run() {
if (isCancelled()) {
e.execute(r);
}
}
},
sameThreadExecutor());
Original comment by lu...@google.com
on 11 Jun 2014 at 2:39
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
narendra...@gmail.com
on 11 Jun 2014 at 8:53