l event processing task to complete for up to the specified amount of
 wait time.
 <p>
 The method blocks until the event processing task has completed execution after a shutdown request, or until the
 timeout occurs, or the current thread is interrupted, whichever happens first.
 <p>
 In case the waiting for the event processing task has been interrupted, this method restores the
 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html?is-external=true#interrupted()" title="class or interf