On Mon, 24 Apr 2023 18:43:26 GMT, Alexey Ivanov <[email protected]> wrote:

>> I preferred asynchronous EDT would be better since its finally block. Is 
>> there any particular reason that we should use `invokeAndWait` than 
>> `invokeLater`?
>
>> I preferred asynchronous EDT would be better since its finally block. Is 
>> there any particular reason that we should use `invokeAndWait` than 
>> `invokeLater`?
> 
> You want to **wait** until the frame is disposed of before exiting the main 
> thread otherwise it doesn't make sense.

yes, I just noticed this in a different proposed change and I agree wait makes 
more sense.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13621#discussion_r1175668212

Reply via email to