nature">boolean&nbsp;close&#8203;(long&nbsp;timeout,
              <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent" class="externalLink">TimeUnit</a>&nbsp;unit)</pre>
<div class="block">Close this event source and wait for the internal 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 e