Skip to content

Commit f46fcd7

Browse files
author
Alexey Ivashko
committed
Adopt strict concurrency for project
* Fix one warning related to that
1 parent f1b50e6 commit f46fcd7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ let package = Package(
3939
// Targets can depend on other targets in this package and products from dependencies.
4040
.target(
4141
name: "MCP",
42-
dependencies: targetDependencies),
42+
dependencies: targetDependencies,
43+
swiftSettings: [
44+
.enableUpcomingFeature("StrictConcurrency")
45+
]
46+
),
4347
.testTarget(
4448
name: "MCPTests",
4549
dependencies: ["MCP"] + targetDependencies),

Sources/MCP/Base/Messages.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension Value: NotRequired {
2020
// MARK: -
2121

2222
/// A method that can be used to send requests and receive responses.
23-
public protocol Method {
23+
public protocol Method: Sendable {
2424
/// The parameters of the method.
2525
associatedtype Parameters: Codable, Hashable, Sendable = Empty
2626
/// The result of the method.

0 commit comments

Comments
 (0)