Skip to content

Clarify the @unchecked Sendable comment on InternetArchive #92

Description

@jbuckner

The @unchecked Sendable comment on InternetArchive (InternetArchive.swift:39) says it's needed because "the injected URL generator and JSON decoder aren't Sendable". Only the JSON decoder is the real blocker: ZippyJSONDecoder (and Foundation's JSONDecoder) are non-Sendable classes and can't easily be made Sendable. The URL generator reason is removable (mark the protocol Sendable), so listing it overstates the reasons. Update the comment to name the decoder as the reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions