init(_:makeSnapshot:)
Creates a reader that uses FileWrapper to read documents from disk.
Declaration
init(_ configuration: sending FileWrapperDocumentReader<Snapshot>.ReadConfiguration, makeSnapshot: @escaping (FileWrapper) async throws -> sending Snapshot)Parameters
- configuration:
Properties required to read a document from disk.
- makeSnapshot:
Deserializes a
FileWrapperinto aSnapshot. Throw an error if the data is malformed.