Acquires ownership and waits until the emit count differs from the given one or until a timeout is reached.
May throw an InterruptException if the task gets interrupted using Task.interrupt().
See Implementation
Acquires ownership and waits until the emit count differs from the given one or until a timeout is reached.