Interface AsyncEventsWaiter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean awaitEventsConsumption()
      Wait by blocking calling thread until pending events have been processed by other threads in the background.
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Method Detail

      • awaitEventsConsumption

        boolean awaitEventsConsumption()
                                throws org.awaitility.core.ConditionTimeoutException
        Wait by blocking calling thread until pending events have been processed by other threads in the background. Implementations must have some sensible fixed timeout value. This method is normally called from the JUnit Test main thread.
        Returns:
        true if anything was pending to be processed and has been processed, false if nothing needed to be
        Throws:
        org.awaitility.core.ConditionTimeoutException - if timed out while waiting