Acquires ownership and waits until the signal is emitted.
Note that in order not to miss any emits it is necessary to use the overload taking an integer.
May throw an InterruptException if the task gets interrupted using Task.interrupt().
See Implementation
Acquires ownership and waits until the signal is emitted.
Note that in order not to miss any emits it is necessary to use the overload taking an integer.