Instance Method

wait()

Waits for, or decrements, a semaphore.

Declaration

func wait()

Discussion

Decrement the counting semaphore. If the resulting value is less than zero, this function waits for a signal to occur before returning.