Tascalate Concurrent 0.9.4
Minor release with the following changes:
- Fix issue Unexpected cancellation behavior - now onTimeout / orTimeout methods with
cancelOnTimeout = true
correctly and timely cancelsPromise
even when used withExecutor
having limited number of free threads (even in case of single-thread executor). However, the behavior may still be surprising forcancelOnTimeout = false
case, while we always have to switch back to to the originalExecutor
after timeout (and if it has no free threads, then switching thread context is impossible). - Simplified
CallbackRegistry
and related code inAbstractCompletableTask
. - Fix error propagation in
CompletablePromise
, fix cancellation ofcompleteAsync
result (should not complete theCompletablePromise
).