[ 
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.50
                       (was: Discovery Oak 1.2.48)

> 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.50
>
>
> 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)

Reply via email to