@ddribin @brentsimmons Yeah, I think NSConditionLock or a semaphore would be simplest.
@brentsimmons Agreed. (And someMethod does not have to be main thread only.)
@brentsimmons Perhaps worth noting that you can’t use NSLock for that pattern because unlock would be in a different thread than lock.