Skip to content

Adoption of Swift 6 features #310

Open
@rebello95

Description

@rebello95

I'm opening an issue to track some low-hanging fruit with regard to Swift 6 features that we should explore in Connect-Swift:

  • Enforcing strict concurrency: I believe all these warnings were fixed with Add more Sendable conformances to resolve warnings #309, but we should switch the toolchain to Swift 6 to enforce this
  • Typed throws: Would it make sense to add throws(ConnectError) in some places?
  • Utilize package visibility: The files in this directory are commented as internal-only but are public so they can be consumed by ConnectNIO. We can make these package instead once running on the updated toolchain to remove these from the public interface

We are currently blocked on fully adopting Swift 6 by apple/swift-protobuf#1729.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions