SwiftprotocolTeaFoundation

protocol TeaFoundation.Lock

Members 3

  1. funcmethod descriptor for lock() -> ()
  2. funcsync<A>(() -> A1) -> A1
  3. funcmethod descriptor for unlock() -> ()
protocol Lock {
    func lock()
    func unlock()
}
extension TeaFoundation.Lock {
    func sync<A1>(_: () -> A1) -> A1
}