import Foundation
private let gate = NSLock()
private func enter() { gate.lock() }
private func leave() { gate.unlock() }
func perform() async { enter(); leave(); await Task.yield() }
