Instance Method

wait()

Blocks the current thread until the condition is signaled.

Declaration

func wait()

Discussion

You must lock the receiver prior to calling this method.

See Also

Waiting for the Lock

func wait(until: Date) -> Bool

Blocks the current thread until the condition is signaled or the specified time limit is reached.