Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10813

Improve ViewStateManagerImpl.waitForAsyncEvents, also speeds up tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • Discovery Oak 1.2.46
    • Discovery
    • None

    Description

      As discussed in this PR 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            stefanegli Stefan Egli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: