-
-
Notifications
You must be signed in to change notification settings - Fork 14
Adopt Swift 5.9 #22
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
Adopt Swift 5.9 #22
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| Pod::Spec.new do |s| | ||
| s.name = 'AsyncQueue' | ||
| s.version = '0.4.0' | ||
| s.version = '0.5.0' | ||
| s.license = 'MIT' | ||
| s.summary = 'A queue that enables ordered sending of events from synchronous to asynchronous code.' | ||
| s.homepage = 'https://github.com/dfed/swift-async-queue' | ||
| s.authors = 'Dan Federman' | ||
| s.source = { :git => 'https://github.com/dfed/swift-async-queue.git', :tag => s.version } | ||
| s.swift_version = '5.8' | ||
| s.swift_version = '5.9' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| s.source_files = 'Sources/**/*.{swift}' | ||
| s.ios.deployment_target = '13.0' | ||
| s.tvos.deployment_target = '13.0' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ ruby '3.0.6' | |
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'cocoapods', '~> 1.12.0' | ||
| gem 'cocoapods', '~> 1.14.0' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,24 +3,31 @@ GEM | |
| specs: | ||
| CFPropertyList (3.0.6) | ||
| rexml | ||
| activesupport (7.0.7.2) | ||
| activesupport (7.1.2) | ||
| base64 | ||
| bigdecimal | ||
| concurrent-ruby (~> 1.0, >= 1.0.2) | ||
| connection_pool (>= 2.2.5) | ||
| drb | ||
| i18n (>= 1.6, < 2) | ||
| minitest (>= 5.1) | ||
| mutex_m | ||
| tzinfo (~> 2.0) | ||
| addressable (2.8.3) | ||
| addressable (2.8.5) | ||
| public_suffix (>= 2.0.2, < 6.0) | ||
| algoliasearch (1.27.5) | ||
| httpclient (~> 2.8, >= 2.8.3) | ||
| json (>= 1.5.1) | ||
| atomos (0.1.3) | ||
| base64 (0.2.0) | ||
| bigdecimal (3.1.4) | ||
| claide (1.1.0) | ||
| cocoapods (1.12.0) | ||
| cocoapods (1.14.3) | ||
| addressable (~> 2.8) | ||
| claide (>= 1.0.2, < 2.0) | ||
| cocoapods-core (= 1.12.0) | ||
| cocoapods-core (= 1.14.3) | ||
| cocoapods-deintegrate (>= 1.0.3, < 2.0) | ||
| cocoapods-downloader (>= 1.6.0, < 2.0) | ||
| cocoapods-downloader (>= 2.1, < 3.0) | ||
| cocoapods-plugins (>= 1.0.0, < 2.0) | ||
| cocoapods-search (>= 1.0.0, < 2.0) | ||
| cocoapods-trunk (>= 1.6.0, < 2.0) | ||
|
|
@@ -32,8 +39,8 @@ GEM | |
| molinillo (~> 0.8.0) | ||
| nap (~> 1.0) | ||
| ruby-macho (>= 2.3.0, < 3.0) | ||
| xcodeproj (>= 1.21.0, < 2.0) | ||
| cocoapods-core (1.12.0) | ||
| xcodeproj (>= 1.23.0, < 2.0) | ||
| cocoapods-core (1.14.3) | ||
| activesupport (>= 5.0, < 8) | ||
| addressable (~> 2.8) | ||
| algoliasearch (~> 1.0) | ||
|
|
@@ -44,7 +51,7 @@ GEM | |
| public_suffix (~> 4.0) | ||
| typhoeus (~> 1.0) | ||
| cocoapods-deintegrate (1.0.5) | ||
| cocoapods-downloader (1.6.3) | ||
| cocoapods-downloader (2.1) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a major version update. I am commenting so that this stands out.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is due to the cocoapods version update. Doesn't affect anyone downstream. |
||
| cocoapods-plugins (1.0.0) | ||
| nap | ||
| cocoapods-search (1.0.1) | ||
|
|
@@ -54,30 +61,35 @@ GEM | |
| cocoapods-try (1.2.0) | ||
| colored2 (3.1.2) | ||
| concurrent-ruby (1.2.2) | ||
| connection_pool (2.4.1) | ||
| drb (2.2.0) | ||
| ruby2_keywords | ||
| escape (0.0.4) | ||
| ethon (0.16.0) | ||
| ffi (>= 1.15.0) | ||
| ffi (1.15.5) | ||
| ffi (1.16.3) | ||
| fourflusher (2.3.1) | ||
| fuzzy_match (2.0.4) | ||
| gh_inspector (1.1.3) | ||
| httpclient (2.8.3) | ||
| i18n (1.14.1) | ||
| concurrent-ruby (~> 1.0) | ||
| json (2.6.3) | ||
| minitest (5.19.0) | ||
| minitest (5.20.0) | ||
| molinillo (0.8.0) | ||
| mutex_m (0.2.0) | ||
| nanaimo (0.3.0) | ||
| nap (1.1.0) | ||
| netrc (0.11.0) | ||
| public_suffix (4.0.7) | ||
| rexml (3.2.5) | ||
| rexml (3.2.6) | ||
| ruby-macho (2.5.1) | ||
| typhoeus (1.4.0) | ||
| ruby2_keywords (0.0.5) | ||
| typhoeus (1.4.1) | ||
| ethon (>= 0.9.0) | ||
| tzinfo (2.0.6) | ||
| concurrent-ruby (~> 1.0) | ||
| xcodeproj (1.22.0) | ||
| xcodeproj (1.23.0) | ||
| CFPropertyList (>= 2.3.3, < 4.0) | ||
| atomos (~> 0.1.3) | ||
| claide (>= 1.0.2, < 2.0) | ||
|
|
@@ -89,7 +101,7 @@ PLATFORMS | |
| ruby | ||
|
|
||
| DEPENDENCIES | ||
| cocoapods (~> 1.12.0) | ||
| cocoapods (~> 1.14.0) | ||
|
|
||
| RUBY VERSION | ||
| ruby 3.0.6p216 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // swift-tools-version: 5.8 | ||
| // swift-tools-version: 5.9 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| // The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
|
||
| import PackageDescription | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,13 +57,8 @@ public final class ActorQueue<ActorType: Actor>: @unchecked Sendable { | |
|
|
||
| /// Instantiates an actor queue. | ||
| public init() { | ||
| var capturedTaskStreamContinuation: AsyncStream<ActorTask>.Continuation? = nil | ||
| let taskStream = AsyncStream<ActorTask> { continuation in | ||
| capturedTaskStreamContinuation = continuation | ||
| } | ||
| // Continuation will be captured during stream creation, so it is safe to force unwrap here. | ||
| // If this force-unwrap fails, something is fundamentally broken in the Swift runtime. | ||
| taskStreamContinuation = capturedTaskStreamContinuation! | ||
| let (taskStream, taskStreamContinuation) = AsyncStream<ActorTask>.makeStream() | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So. Much. Better! |
||
| self.taskStreamContinuation = taskStreamContinuation | ||
|
|
||
| Task.detached { | ||
| for await actorTask in taskStream { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍