Acquires ownership and waits until the emit count differs from the given one.
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.