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