func syncRead()

in MobiusCore/Source/AsyncStartStopStateMachine.swift [60:65]


    func syncRead<T>(_ closure: (Snapshot) throws -> T) rethrows -> T {
        dispatchPrecondition(condition: .notOnQueue(queue))
        return try queue.sync {
            try closure(snapshot())
        }
    }