Modernize and cleanup: Swift 5.9, concurrency safety, and documentation#1
Merged
maximkhatskevich merged 15 commits intomasterfrom Mar 4, 2026
Merged
Modernize and cleanup: Swift 5.9, concurrency safety, and documentation#1maximkhatskevich merged 15 commits intomasterfrom
maximkhatskevich merged 15 commits intomasterfrom
Conversation
added 15 commits
February 22, 2026 23:27
Agent-Id: agent-873e080b-a0e7-43e4-9632-4a18a275a1e8 Linked-Note-Id: 969c5ad8-5b04-4682-b2dc-dae546604a1f
…tently Agent-Id: agent-49df8443-bf85-4917-9034-b91e20394d4c
Agent-Id: agent-8f2caa11-22ef-4ed3-b6ae-b1b894e2300d
Agent-Id: agent-28f92b6f-b558-4c07-ad9b-b4428046c1de
Agent-Id: agent-f285cd2e-08ec-4cfb-abbe-5d86b17b051a Linked-Note-Id: b4d6a212-bfc5-49d0-aa74-c1cc39203ac8
Agent-Id: agent-6336b15b-0338-451c-b550-fe2b5c27ad43 Linked-Note-Id: 502fcdc5-23c3-4b8f-ba93-76ccde2ac247
Agent-Id: agent-184c7653-fa77-4f8a-a539-e1760f337dfc
Agent-Id: agent-b7d4bec8-e411-42e6-b1c9-e05f9ce606c9
Agent-Id: agent-2b5daece-15e6-4fa3-826e-71941eb6ecf8
Agent-Id: agent-33e5e741-f86d-42e9-a509-aa8331f0b331
Agent-Id: agent-4a47c7ed-d518-4ce1-99fb-2052cdc3edb7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the codebase to Swift 5.9 standard with Swift 6.0 readiness.
Changes
Important
waitForFirstResult()— added.receive(on: DispatchQueue.main)serialization +resumedguardensureMainThread()toDispatchQueue.mainfor consistency@Sendableconsistently across all operators and Pipeline static methodswaitForFirstResult()— success, failure, and empty completion casesEnhancements
LocalizedErrorconformance toFailedConditionCheckandCompletedWithoutValueSimpleWrapper—map,inspect,mutateFailedConditionCheckpublicCompletedWithoutValueerror type for publishers that complete without a value.!/,./>,!!)Cleanup
//infixcomment noise from all operator functions//import XCERequirementfrom test files///styleTest Results
45/45 tests pass (up from 42 — 3 new
waitForFirstResulttests).Files Changed
Package.swift— version + platform bumpsSources/Core/Extensions/Publisher+Helpers.swift— concurrency fixSources/Core/Operators.swift— cleanup +@SendableSources/Core/Pipeline.swift— public types +LocalizedError+@SendableSources/Core/SimpleWrapper.swift— async variants +@SendableSources/Core/Take.swift— typo fixTests/AllTests/PublisherTests.swift— new testsTests/AllTests/OperatorsTests.swift— dead import removedTests/AllTests/OperatorsAsyncTests.swift— dead import removedREADME.md— full updatePull Request opened by Augment Code with guidance from the PR author