On Wed, 26 Mar 2025 08:34:06 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Martin Fox has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Lower limit on run loop nesting
>
> In any case, this PR should at least add the following bits of information to 
> `Platform.enterNestedEventLoop()`:
> 1. There is some limit to the number of nested event loops.
> 2. Applications should always check `Platform.canStartNestedEventLoop()` 
> before invoking `enterNestedEventLoop()`.
> 3. An exception will be thrown if the limit is exceeded.

> I think the suggestion made by @mstr2 to recommend calling 
> `canStartNestedLoop` if the app wants to know whether or not this call will 
> succeed is a good one.

The docs on `canStartNestedEventLoop` describe its behavior already. I'm not 
sure what further information would be useful. Would it be enough to add a see 
also link?

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

PR Comment: https://git.openjdk.org/jfx/pull/1741#issuecomment-2759650479

Reply via email to