You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (Jira)" <ji...@apache.org> on 2022/10/27 15:41:00 UTC

[jira] [Updated] (SLING-10813) Improve ViewStateManagerImpl.waitForAsyncEvents, also speeds up tests

     [ https://issues.apache.org/jira/browse/SLING-10813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli updated SLING-10813:
--------------------------------
    Fix Version/s: Discovery Oak 1.2.44

> Improve ViewStateManagerImpl.waitForAsyncEvents, also speeds up tests
> ---------------------------------------------------------------------
>
>                 Key: SLING-10813
>                 URL: https://issues.apache.org/jira/browse/SLING-10813
>             Project: Sling
>          Issue Type: Improvement
>          Components: Discovery
>            Reporter: Stefan Egli
>            Priority: Minor
>             Fix For: Discovery Oak 1.2.44
>
>
> As discussed [in this PR|https://github.com/apache/sling-org-apache-sling-discovery-oak/pull/4#discussion_r708292265] the ViewStateManagerImpl.waitForAsyncEvents returning currently requires a {{Thread.sleep()}} to ensure anything that was "just triggered" has finished executing asynchronously.
> This should be improved in this waitForAsyncEvent method, by being more precise about when it returns (ie include any call to {{asyncEvent.trigger()}} having terminated)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)