Contents

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 FileWrapper into a Snapshot. Throw an error if the data is malformed.

See Also

Creating a reader