mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
Consistent MonoToListenableFutureAdapter.cancel()
Issue: SPR-17336
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ abstract class AbstractMonoToListenableFutureAdapter<S, T> implements Listenable
|
||||
return false;
|
||||
}
|
||||
this.monoProcessor.cancel();
|
||||
return true;
|
||||
// isCancelled may still return false, if mono completed before the cancel
|
||||
return this.monoProcessor.isCancelled();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user