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 2021/09/14 15:03:00 UTC

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

Stefan Egli created SLING-10813:
-----------------------------------

             Summary: 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


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.3.4#803005)