mariia
6/11/2019 - 7:03 AM

Swift semaphore

let semaphore = DispatchSemaphore(value: 0)
semaphore.signal()
semaphore.wait()