func synchronized()

in MobiusCore/Source/Lock.swift [9:16]


    func synchronized<Result>(closure: () throws -> Result) rethrows -> Result {
        lock.lock()
        defer {
            lock.unlock()
        }

        return try closure()
    }