On Tue, 31 Jan 2023 14:48:30 GMT, Alexey Ivanov <[email protected]> wrote:
>> Dont think so...If `doInBackground `is true it should mean cleanup is done >> as `doInBackground ` is false by default > > That's the thing. If `cancel` doesn't wait until `doInBackground` completes, > which *it shouldn't do*, then `cancel` returns quickly. Therefore the main > thread reaches this condition before the “cleanup” in `doInBackground` > finishes, as such the test should always fail. > > Do I miss anything? ok..understood...modified... ------------- PR: https://git.openjdk.org/jdk/pull/11940
