Build Information
Successful build of SwiftUseCase, reference 0.2.0 (573d1f
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 16:59:01 UTC.
Swift 6 data race errors: 8
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xtro/SwiftUseCase.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/xtro/SwiftUseCase
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 573d1f2 Add usecase macro for automatic usecase generation from methods
Cloned https://github.com/xtro/SwiftUseCase.git
Revision (git rev-parse @):
573d1f29342f73ec4ba4bc24d1b498180f937c31
SUCCESS checkout https://github.com/xtro/SwiftUseCase.git at 0.2.0
Fetching https://github.com/apple/swift-syntax.git
[1/66764] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.58s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (3.38s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftusecase",
"name": "SwiftUseCase",
"url": "https://github.com/xtro/SwiftUseCase.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUseCase",
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/apple/swift-syntax.git",
"version": "509.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/xtro/SwiftUseCase.git
[1/95] Fetching swiftusecase
Fetched https://github.com/xtro/SwiftUseCase.git from cache (0.82s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.92s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.03s)
Creating working copy for https://github.com/xtro/SwiftUseCase.git
Working copy of https://github.com/xtro/SwiftUseCase.git resolved at 0.2.0 (573d1f2)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
warning: '.resolve-product-dependencies': dependency 'swiftusecase' is not used by any target
Found 1 product dependencies
- swift-syntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/xtro/SwiftUseCase.git
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"exact" : [
"509.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
}
],
"manifest_display_name" : "SwiftUseCase",
"name" : "SwiftUseCase",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftUseCase",
"targets" : [
"SwiftUseCase"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftUseCaseMacro",
"targets" : [
"SwiftUseCaseMacro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macros",
"targets" : [
"Macros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftUseCaseTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCaseTests",
"path" : "Tests",
"sources" : [
"SwiftUseCaseTests.swift"
],
"target_dependencies" : [
"SwiftUseCase"
],
"type" : "test"
},
{
"c99name" : "SwiftUseCaseMacro",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCaseMacro",
"path" : "Sources/Plugin",
"product_memberships" : [
"SwiftUseCase",
"SwiftUseCaseMacro"
],
"sources" : [
"SwiftUseCaseMacro.swift"
],
"target_dependencies" : [
"Macros"
],
"type" : "library"
},
{
"c99name" : "SwiftUseCase",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCase",
"path" : "Sources/Usecases",
"product_memberships" : [
"SwiftUseCase"
],
"sources" : [
"AnyUseCase+Callbacks.swift",
"AnyUseCase+Combine.swift",
"AnyUseCase+Resolve.swift",
"AnyUseCase.swift",
"AsyncExecutables.swift",
"AsyncThrowingUseCase+Callbacks.swift",
"AsyncThrowingUseCase+Publisher.swift",
"AsyncThrowingUseCase.swift",
"AsyncUseCase+Callbacks.swift",
"AsyncUseCase+Publisher.swift",
"AsyncUseCase.swift",
"AsyncUsecaseable.swift",
"CombineUseCase.swift",
"Executables.swift",
"ThrowingUseCase+Callbacks.swift",
"ThrowingUseCase+Publisher.swift",
"ThrowingUseCase.swift",
"UseCase+Callbacks.swift",
"UseCase+Publisher.swift",
"UseCase.swift",
"UseCaseable.swift"
],
"target_dependencies" : [
"SwiftUseCaseMacro"
],
"type" : "library"
},
{
"c99name" : "Macros",
"module_type" : "SwiftTarget",
"name" : "Macros",
"path" : "Sources/Macros",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftUseCase",
"SwiftUseCaseMacro",
"Macros"
],
"sources" : [
"Plugin.swift",
"UsecaseMacro.swift"
],
"type" : "macro"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/18] Write sources
[15/18] Write swift-version--7754E27361AE5C74.txt
[17/20] Compiling SwiftSyntax509 Empty.swift
[18/20] Emitting module SwiftSyntax509
[19/66] Compiling SwiftSyntax SyntaxText.swift
[20/66] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[21/66] Compiling SwiftSyntax TokenDiagnostic.swift
[22/66] Compiling SwiftSyntax TokenSyntax.swift
[23/66] Compiling SwiftSyntax Trivia.swift
[24/66] Compiling SwiftSyntax AbsolutePosition.swift
[25/66] Compiling SwiftSyntax Assert.swift
[26/66] Compiling SwiftSyntax BumpPtrAllocator.swift
[27/66] Compiling SwiftSyntax CommonAncestor.swift
[28/66] Compiling SwiftSyntax Convenience.swift
[29/71] Compiling SwiftSyntax RawSyntaxTokenView.swift
[30/71] Compiling SwiftSyntax SourceLength.swift
[31/71] Compiling SwiftSyntax SourceLocation.swift
[32/71] Compiling SwiftSyntax SourcePresence.swift
[33/71] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[34/71] Compiling SwiftSyntax MemoryLayout.swift
[35/71] Compiling SwiftSyntax MissingNodeInitializers.swift
[36/71] Compiling SwiftSyntax RawSyntax.swift
[37/71] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[38/71] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[39/71] Compiling SwiftSyntax Syntax.swift
[40/71] Compiling SwiftSyntax SyntaxArena.swift
[41/71] Compiling SwiftSyntax SyntaxChildren.swift
[42/71] Compiling SwiftSyntax SyntaxCollection.swift
[43/71] Compiling SwiftSyntax SyntaxData.swift
[44/71] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[45/71] Compiling SwiftSyntax SyntaxBaseNodes.swift
[46/71] Compiling SwiftSyntax SyntaxCollections.swift
[47/71] Compiling SwiftSyntax SyntaxEnum.swift
[48/71] Compiling SwiftSyntax SyntaxKind.swift
[49/71] Emitting module SwiftSyntax
[50/71] Compiling SwiftSyntax Utils.swift
[51/71] Compiling SwiftSyntax ChildNameForKeyPath.swift
[52/71] Compiling SwiftSyntax Keyword.swift
[53/71] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[54/71] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[55/71] Compiling SwiftSyntax Tokens.swift
[56/71] Compiling SwiftSyntax TriviaPieces.swift
[57/71] Compiling SwiftSyntax RawSyntaxNodes.swift
[58/71] Compiling SwiftSyntax RawSyntaxValidation.swift
[59/71] Compiling SwiftSyntax SyntaxDeclNodes.swift
[60/71] Compiling SwiftSyntax SyntaxRewriter.swift
[61/71] Compiling SwiftSyntax SyntaxTraits.swift
[62/71] Compiling SwiftSyntax SyntaxTransform.swift
[63/71] Compiling SwiftSyntax SyntaxVisitor.swift
[64/71] Compiling SwiftSyntax TokenKind.swift
[65/71] Compiling SwiftSyntax SyntaxExprNodes.swift
[66/71] Compiling SwiftSyntax SyntaxNodes.swift
[67/71] Compiling SwiftSyntax SyntaxPatternNodes.swift
[68/71] Compiling SwiftSyntax SyntaxStmtNodes.swift
[69/71] Compiling SwiftSyntax SyntaxTypeNodes.swift
[70/123] Compiling SwiftDiagnostics Message.swift
[71/123] Compiling SwiftDiagnostics Note.swift
[72/123] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[73/123] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[74/123] Emitting module SwiftBasicFormat
[75/123] Compiling SwiftDiagnostics Diagnostic.swift
[76/123] Compiling SwiftDiagnostics FixIt.swift
[77/123] Compiling SwiftDiagnostics Convenience.swift
[78/123] Emitting module SwiftDiagnostics
[79/123] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[80/123] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[81/123] Compiling SwiftBasicFormat Syntax+Extensions.swift
[82/123] Compiling SwiftBasicFormat BasicFormat.swift
[83/123] Compiling SwiftParser UnicodeScalarExtensions.swift
[84/123] Compiling SwiftParser Lookahead.swift
[85/123] Compiling SwiftParser LoopProgressCondition.swift
[86/123] Compiling SwiftParser Modifiers.swift
[87/127] Compiling SwiftParser Names.swift
[88/127] Compiling SwiftParser Nominals.swift
[89/127] Compiling SwiftParser Parameters.swift
[90/127] Compiling SwiftParser ParseSourceFile.swift
[91/127] Compiling SwiftParser Parser.swift
[92/127] Compiling SwiftParser Patterns.swift
[93/127] Compiling SwiftParser Recovery.swift
[94/127] Compiling SwiftParser Specifiers.swift
[95/127] Compiling SwiftParser SyntaxUtils.swift
[96/127] Compiling SwiftParser TokenConsumer.swift
[97/127] Compiling SwiftParser TokenPrecedence.swift
[98/127] Compiling SwiftParser TokenSpec.swift
[99/127] Compiling SwiftParser Statements.swift
[100/127] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[101/127] Compiling SwiftParser StringLiterals.swift
[102/127] Compiling SwiftParser SwiftParserCompatibility.swift
[103/127] Compiling SwiftParser TokenSpecSet.swift
[104/127] Compiling SwiftParser TopLevel.swift
[105/127] Compiling SwiftParser TriviaParser.swift
[106/127] Compiling SwiftParser Types.swift
[107/127] Emitting module SwiftParser
[108/127] Compiling SwiftParser IsLexerClassified.swift
[109/127] Compiling SwiftParser LayoutNodes+Parsable.swift
[110/127] Compiling SwiftParser Parser+TokenSpecSet.swift
[111/127] Compiling SwiftParser TokenSpecStaticMembers.swift
[112/127] Compiling SwiftParser Lexeme.swift
[113/127] Compiling SwiftParser LexemeSequence.swift
[114/127] Compiling SwiftParser Lexer.swift
[115/127] Compiling SwiftParser RegexLiteralLexer.swift
[116/127] Compiling SwiftParser Attributes.swift
[117/127] Compiling SwiftParser Availability.swift
[118/127] Compiling SwiftParser CharacterInfo.swift
[119/127] Compiling SwiftParser CollectionNodes+Parsable.swift
[120/127] Compiling SwiftParser Declarations.swift
[121/127] Compiling SwiftParser Directives.swift
[122/127] Compiling SwiftParser ExperimentalFeatures.swift
[123/127] Compiling SwiftParser Expressions.swift
[124/127] Compiling SwiftParser IncrementalParseTransition.swift
[125/127] Compiling SwiftParser Cursor.swift
[126/150] Compiling SwiftOperators PrecedenceGroup.swift
[127/151] Compiling SwiftOperators OperatorTable.swift
[128/151] Compiling SwiftOperators PrecedenceGraph.swift
[129/151] Compiling SwiftOperators SyntaxSynthesis.swift
[130/151] Compiling SwiftOperators OperatorTable+Semantics.swift
[131/151] Compiling SwiftOperators OperatorError.swift
[132/151] Compiling SwiftOperators OperatorTable+Defaults.swift
[133/151] Compiling SwiftOperators Operator.swift
[134/151] Compiling SwiftOperators OperatorError+Diagnostics.swift
[135/151] Compiling SwiftOperators OperatorTable+Folding.swift
[136/151] Emitting module SwiftOperators
[137/151] Compiling SwiftParserDiagnostics Utils.swift
[138/151] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[139/151] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[140/151] Compiling SwiftParserDiagnostics PresenceUtils.swift
[141/152] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[142/152] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[143/152] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[144/152] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[145/152] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[146/152] Emitting module SwiftParserDiagnostics
[147/152] Compiling SwiftParserDiagnostics MissingNodesError.swift
[148/152] Compiling SwiftParserDiagnostics MissingTokenError.swift
[149/152] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[150/152] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[151/166] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[152/166] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[153/166] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[154/166] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[155/167] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[156/167] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[157/167] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[158/167] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[159/167] Compiling SwiftSyntaxBuilder Indenter.swift
[160/167] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[161/167] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[162/167] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[163/167] Emitting module SwiftSyntaxBuilder
[164/167] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[165/167] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[166/181] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[167/181] Compiling SwiftSyntaxMacros Macro.swift
[168/181] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[169/181] Compiling SwiftSyntaxMacros MemberMacro.swift
[170/181] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[171/181] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[172/181] Compiling SwiftSyntaxMacros AccessorMacro.swift
[173/181] Compiling SwiftSyntaxMacros AttachedMacro.swift
[174/181] Compiling SwiftSyntaxMacros Macro+Format.swift
[175/182] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[176/182] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[177/182] Emitting module SwiftSyntaxMacros
[178/182] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[179/182] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[180/182] Compiling SwiftSyntaxMacros PeerMacro.swift
[181/190] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[182/190] Emitting module SwiftSyntaxMacroExpansion
[183/190] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[184/190] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[185/190] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[186/190] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[187/190] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[188/190] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[189/197] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[190/197] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[191/197] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[192/197] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[193/197] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[194/197] Emitting module SwiftCompilerPluginMessageHandling
[195/197] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[196/199] Emitting module SwiftCompilerPlugin
[197/199] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[198/202] Emitting module Macros
[199/202] Compiling Macros Plugin.swift
[200/202] Compiling Macros UsecaseMacro.swift
[200/202] Write Objects.LinkFileList
[201/202] Linking Macros-tool
[203/204] Compiling SwiftUseCaseMacro SwiftUseCaseMacro.swift
[204/204] Emitting module SwiftUseCaseMacro
[205/224] Emitting module SwiftUseCase
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:30:13: warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | } onCancel: { [task] in
30 | task.value?.cancel()
| `- warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | private class Cancellable {
| `- note: class 'Cancellable' does not conform to the 'Sendable' protocol
34 | var value: AnyCancellable?
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:26:38: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
24 | task.value?.cancel()
25 | }, receiveValue: {
26 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | })
28 | }
[206/226] Compiling SwiftUseCase AsyncUseCase+Publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncUseCase+Publisher.swift:11:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
9 | func publisher(parameters: Parameter = () as! Parameter, priority: TaskPriority = .background) -> AnyPublisher<Result, Never> {
10 | Future { promise in
11 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | let result = await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
13 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
14 | promise(.success(result))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncUseCase+Publisher.swift:14:21: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
12 | let result = await execute(parameters)
13 | await MainActor.run { [promise] in
14 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 | }
[207/226] Compiling SwiftUseCase AsyncUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncUseCase+Publisher.swift:11:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
9 | func publisher(parameters: Parameter = () as! Parameter, priority: TaskPriority = .background) -> AnyPublisher<Result, Never> {
10 | Future { promise in
11 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | let result = await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
13 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
14 | promise(.success(result))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncUseCase+Publisher.swift:14:21: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
12 | let result = await execute(parameters)
13 | await MainActor.run { [promise] in
14 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 | }
[208/226] Compiling SwiftUseCase ThrowingUseCase+Publisher.swift
[209/226] Compiling SwiftUseCase ThrowingUseCase.swift
[210/226] Compiling SwiftUseCase UseCase+Callbacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:11:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = { result in
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:11:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = { result in
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:14:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
14 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:14:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
14 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:16:25: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
14 | usecase.execute(parameters ?? (() as! Parameter))
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:16:25: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
14 | usecase.execute(parameters ?? (() as! Parameter))
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 | }
[211/226] Compiling SwiftUseCase UseCase+Publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:11:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = { result in
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:11:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = { result in
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:14:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
14 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:14:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | onComplete(result)
13 | }
14 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:16:25: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
14 | usecase.execute(parameters ?? (() as! Parameter))
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/UseCase+Callbacks.swift:16:25: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
14 | usecase.execute(parameters ?? (() as! Parameter))
15 | return AnyCancellable { [usecase] in
16 | _ = usecase.cancellation?()
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | }
18 | }
[212/226] Compiling SwiftUseCase UseCase.swift
[213/226] Compiling SwiftUseCase UseCaseable.swift
[214/226] Compiling SwiftUseCase AsyncThrowingUseCase.swift
[215/226] Compiling SwiftUseCase AsyncUseCase+Callbacks.swift
[216/226] Compiling SwiftUseCase AsyncUsecaseable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:30:13: warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | } onCancel: { [task] in
30 | task.value?.cancel()
| `- warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | private class Cancellable {
| `- note: class 'Cancellable' does not conform to the 'Sendable' protocol
34 | var value: AnyCancellable?
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:26:38: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
24 | task.value?.cancel()
25 | }, receiveValue: {
26 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | })
28 | }
[217/226] Compiling SwiftUseCase CombineUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:30:13: warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | } onCancel: { [task] in
30 | task.value?.cancel()
| `- warning: capture of 'task' with non-sendable type 'CombineUseCase<P>.Cancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | private class Cancellable {
| `- note: class 'Cancellable' does not conform to the 'Sendable' protocol
34 | var value: AnyCancellable?
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Parameter' (aka 'P') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:8:15: warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
6 | import Combine
7 |
8 | public struct CombineUseCase<P: Publisher>: AsyncThrowingUseCase {
| `- warning: type 'CombineUseCase<P>.Result' (aka 'P.Output') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public typealias Parameter = P
10 | public typealias Result = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/CombineUseCase.swift:26:38: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
24 | task.value?.cancel()
25 | }, receiveValue: {
26 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
27 | })
28 | }
[218/226] Compiling SwiftUseCase AsyncThrowingUseCase+Callbacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:11:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
9 | func publisher<F: Error>(parameters: Parameter = () as! Parameter, failureType _: F.Type, priority: TaskPriority = .background) -> AnyPublisher<Result, F> {
10 | Future { promise in
11 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | do {
13 | let result = try await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
14 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
15 | promise(.success(result))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:15:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
13 | let result = try await execute(parameters)
14 | await MainActor.run { [promise] in
15 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
16 | }
17 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:19:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
17 | } catch {
18 | await MainActor.run { [promise] in
19 | promise(.failure(error as! F))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:29:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | func publisher(parameters: Parameter, priority: TaskPriority = .background) -> AnyPublisher<Result, Error> {
28 | Future { promise in
29 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | do {
31 | let result = try await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
32 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
33 | promise(.success(result))
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:33:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
31 | let result = try await execute(parameters)
32 | await MainActor.run { [promise] in
33 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 | }
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:37:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
35 | } catch {
36 | await MainActor.run { [promise] in
37 | promise(.failure(error))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
[219/226] Compiling SwiftUseCase AsyncThrowingUseCase+Publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:11:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
9 | func publisher<F: Error>(parameters: Parameter = () as! Parameter, failureType _: F.Type, priority: TaskPriority = .background) -> AnyPublisher<Result, F> {
10 | Future { promise in
11 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | do {
13 | let result = try await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
14 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
15 | promise(.success(result))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:15:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
13 | let result = try await execute(parameters)
14 | await MainActor.run { [promise] in
15 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
16 | }
17 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:19:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
17 | } catch {
18 | await MainActor.run { [promise] in
19 | promise(.failure(error as! F))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:29:47: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | func publisher(parameters: Parameter, priority: TaskPriority = .background) -> AnyPublisher<Result, Error> {
28 | Future { promise in
29 | Task.detached(priority: priority) {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | do {
31 | let result = try await execute(parameters)
| | `- note: closure captures non-Sendable 'parameters'
| `- note: closure captures non-Sendable 'self'
32 | await MainActor.run { [promise] in
| `- note: closure captures non-Sendable 'promise'
33 | promise(.success(result))
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:33:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
31 | let result = try await execute(parameters)
32 | await MainActor.run { [promise] in
33 | promise(.success(result))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 | }
35 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AsyncThrowingUseCase+Publisher.swift:37:25: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
35 | } catch {
36 | await MainActor.run { [promise] in
37 | promise(.failure(error))
| |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
[220/226] Compiling SwiftUseCase Executables.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:11:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onFailure: @escaping (Failure) -> Void, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | usecase.onFailure = {
13 | onFailure($0 as! Failure)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:11:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onFailure: @escaping (Failure) -> Void, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | usecase.onFailure = {
13 | onFailure($0 as! Failure)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:12:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
12 | usecase.onFailure = {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:12:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
12 | usecase.onFailure = {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:15:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
15 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:15:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
15 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:17:25: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | usecase.execute(parameters ?? (() as! Parameter))
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:17:25: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | usecase.execute(parameters ?? (() as! Parameter))
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | }
19 | }
[221/226] Compiling SwiftUseCase ThrowingUseCase+Callbacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:11:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onFailure: @escaping (Failure) -> Void, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | usecase.onFailure = {
13 | onFailure($0 as! Failure)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:11:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | func execute(_ parameters: Parameter? = nil, onFailure: @escaping (Failure) -> Void, onComplete: @escaping (Result) -> Void) -> AnyCancellable {
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | usecase.onFailure = {
13 | onFailure($0 as! Failure)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:12:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
12 | usecase.onFailure = {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:12:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | let usecase = eraseToAnyUseCase
11 | usecase.onComplete = onComplete
12 | usecase.onFailure = {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:15:17: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
15 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:15:17: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | onFailure($0 as! Failure)
14 | }
15 | usecase.execute(parameters ?? (() as! Parameter))
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:17:25: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | usecase.execute(parameters ?? (() as! Parameter))
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/ThrowingUseCase+Callbacks.swift:17:25: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | usecase.execute(parameters ?? (() as! Parameter))
16 | return AnyCancellable { [usecase] in
17 | _ = usecase.cancellation?()
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | }
19 | }
[222/226] Compiling SwiftUseCase AnyUseCase+Callbacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:23: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:46: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:24:33: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | break
23 | case let .failure(error):
24 | usecase.onFailure?(error)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | }
26 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:28:29: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | cancellable?.cancel()
27 | }, receiveValue: { [usecase, cancellable] output in
28 | usecase.onComplete?(output)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | cancellable?.cancel()
30 | })
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:32:17: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | })
31 | }
32 | usecase.execute = execution
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | return usecase
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:57:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
55 | var task: Task<Void, Never>?
56 | execute = { parameters in
57 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
60 | guard let self else { return }
61 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:60:31: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
60 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
61 | onComplete?(result)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:98:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | var task: Task<Void, Never>?
97 | execute = { parameters in
98 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | do {
100 | let result = try await usecase(parameters)
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
103 | guard let self else { return }
104 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:103:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
103 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
104 | onComplete?(result)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:108:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | } catch {
107 | await MainActor.run { [weak self] in
108 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | onFailure?(error)
110 | }
[223/226] Compiling SwiftUseCase AnyUseCase+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:23: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:46: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:24:33: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | break
23 | case let .failure(error):
24 | usecase.onFailure?(error)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | }
26 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:28:29: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | cancellable?.cancel()
27 | }, receiveValue: { [usecase, cancellable] output in
28 | usecase.onComplete?(output)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | cancellable?.cancel()
30 | })
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:32:17: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | })
31 | }
32 | usecase.execute = execution
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | return usecase
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:57:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
55 | var task: Task<Void, Never>?
56 | execute = { parameters in
57 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
60 | guard let self else { return }
61 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:60:31: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
60 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
61 | onComplete?(result)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:98:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | var task: Task<Void, Never>?
97 | execute = { parameters in
98 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | do {
100 | let result = try await usecase(parameters)
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
103 | guard let self else { return }
104 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:103:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
103 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
104 | onComplete?(result)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:108:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | } catch {
107 | await MainActor.run { [weak self] in
108 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | onFailure?(error)
110 | }
[224/226] Compiling SwiftUseCase AnyUseCase+Resolve.swift
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:23: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:14:46: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | /// - Returns: An ``AnyUseCase`` instance.
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
16 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:15:13: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 | func eraseToAnyUseCase(receiveOn: DispatchQueue? = nil) -> AnyUseCase<Void, Output> {
14 | let usecase = AnyUseCase<Void, Output>()
15 | let execution: AnyUseCase<Void, Output>.Execution = { _ in
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
16 | var cancellable: AnyCancellable?
17 | cancellable = self
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:24:33: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | break
23 | case let .failure(error):
24 | usecase.onFailure?(error)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | }
26 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:28:29: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | cancellable?.cancel()
27 | }, receiveValue: { [usecase, cancellable] output in
28 | usecase.onComplete?(output)
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | cancellable?.cancel()
30 | })
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Combine.swift:32:17: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | })
31 | }
32 | usecase.execute = execution
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | return usecase
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:10:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | public extension UseCase {
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | AnyUseCase(usecase: self)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:24:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | public extension ThrowingUseCase {
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | AnyUseCase(usecase: self)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:11:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | /// Erase type to ``AnyUseCase``
10 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
11 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:25:9: warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// Erase type to ``AnyUseCase``
24 | var eraseToAnyUseCase: AnyUseCase<Parameter, Result> {
25 | AnyUseCase(usecase: self)
| `- warning: type 'Self.Result' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:57:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
55 | var task: Task<Void, Never>?
56 | execute = { parameters in
57 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
60 | guard let self else { return }
61 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:60:31: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | let result = await usecase(parameters)
59 | await MainActor.run { [weak self] in
60 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
61 | onComplete?(result)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:98:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | var task: Task<Void, Never>?
97 | execute = { parameters in
98 | task = Task.detached { [usecase] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | do {
100 | let result = try await usecase(parameters)
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
| `- note: closure captures 'self' which is accessible to code in the current task
103 | guard let self else { return }
104 | onComplete?(result)
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:103:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
101 | try Task.checkCancellation()
102 | await MainActor.run { [weak self] in
103 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
104 | onComplete?(result)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Usecases/AnyUseCase+Resolve.swift:108:35: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | } catch {
107 | await MainActor.run { [weak self] in
108 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | onFailure?(error)
110 | }
[225/226] Compiling SwiftUseCase AnyUseCase.swift
[226/226] Compiling SwiftUseCase AsyncExecutables.swift
Build complete! (48.92s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"exact" : [
"509.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
}
],
"manifest_display_name" : "SwiftUseCase",
"name" : "SwiftUseCase",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftUseCase",
"targets" : [
"SwiftUseCase"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftUseCaseMacro",
"targets" : [
"SwiftUseCaseMacro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macros",
"targets" : [
"Macros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftUseCaseTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCaseTests",
"path" : "Tests",
"sources" : [
"SwiftUseCaseTests.swift"
],
"target_dependencies" : [
"SwiftUseCase"
],
"type" : "test"
},
{
"c99name" : "SwiftUseCaseMacro",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCaseMacro",
"path" : "Sources/Plugin",
"product_memberships" : [
"SwiftUseCase",
"SwiftUseCaseMacro"
],
"sources" : [
"SwiftUseCaseMacro.swift"
],
"target_dependencies" : [
"Macros"
],
"type" : "library"
},
{
"c99name" : "SwiftUseCase",
"module_type" : "SwiftTarget",
"name" : "SwiftUseCase",
"path" : "Sources/Usecases",
"product_memberships" : [
"SwiftUseCase"
],
"sources" : [
"AnyUseCase+Callbacks.swift",
"AnyUseCase+Combine.swift",
"AnyUseCase+Resolve.swift",
"AnyUseCase.swift",
"AsyncExecutables.swift",
"AsyncThrowingUseCase+Callbacks.swift",
"AsyncThrowingUseCase+Publisher.swift",
"AsyncThrowingUseCase.swift",
"AsyncUseCase+Callbacks.swift",
"AsyncUseCase+Publisher.swift",
"AsyncUseCase.swift",
"AsyncUsecaseable.swift",
"CombineUseCase.swift",
"Executables.swift",
"ThrowingUseCase+Callbacks.swift",
"ThrowingUseCase+Publisher.swift",
"ThrowingUseCase.swift",
"UseCase+Callbacks.swift",
"UseCase+Publisher.swift",
"UseCase.swift",
"UseCaseable.swift"
],
"target_dependencies" : [
"SwiftUseCaseMacro"
],
"type" : "library"
},
{
"c99name" : "Macros",
"module_type" : "SwiftTarget",
"name" : "Macros",
"path" : "Sources/Macros",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftUseCase",
"SwiftUseCaseMacro",
"Macros"
],
"sources" : [
"Plugin.swift",
"UsecaseMacro.swift"
],
"type" : "macro"
}
],
"tools_version" : "5.10"
}
Done.