Skip to content

Swift 6 compatible Hub package #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

piotrkowalczuk
Copy link

@piotrkowalczuk piotrkowalczuk commented Mar 22, 2025

This PR is a follow-up for #189. It changes the remaining parts the the Hub package to be compatible with structured concurrency. As a result:

  • Downloader, LanguageModelConfigurationFromHub and HubApi conform to the Sendable protocol.
  • Broadcaster<E: Sendable> got added as a building block replacing CurrentValueSubject.
  • Extra flags added to Package.swift that enable selective support for Swift 6 to Hub and HubTests packages.

This PR can be merged after #189 becomes part of the mainline. In its current form, it's quite verbose. Relevant changes to this PR are located in Source/Hub/Hub, Source/Hub/HubApi, Tests/HubTests/DownloaderTests.swift and Package.swift.

@FL33TW00D FL33TW00D mentioned this pull request Apr 1, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant