Skip to content

DependentPromise - support for cancellation of Promise origins

Compare
Choose a tag to compare
@vsilaev vsilaev released this 01 Aug 14:57
· 326 commits to master since this release

Feature: this release introduces new class DependentPromise - a wrapper that may keep track of CompletionStage-s it's originated from. Also, this wrapper will cancel all the origins enlisted.

Feature: additionally, Promises class adds several overload to all, any, atLeast and corresponding *Strict variants to let specify whether or not CompletionStage-s should be cancelled.

Bug fix: AbstractCompletableTask.thenComposeAsync now correctly cancels all intermediate (hidden from client) Promise-s used.