Skip to content

Commit 0bc48eb

Browse files
authored
Strict concurrency for TCP examples (#3103)
Motivation: Two more examples with no changes required. Modifications: Lock in strict concurrency for NIOTCPEchoClient and NIOTCPEchoServer. Result: Even more stricter concurrencier.
1 parent 9a181b3 commit 0bc48eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,17 @@ let package = Package(
275275
"NIOPosix",
276276
"NIOCore",
277277
],
278-
exclude: ["README.md"]
278+
exclude: ["README.md"],
279+
swiftSettings: strictConcurrencySettings
279280
),
280281
.executableTarget(
281282
name: "NIOTCPEchoClient",
282283
dependencies: [
283284
"NIOPosix",
284285
"NIOCore",
285286
],
286-
exclude: ["README.md"]
287+
exclude: ["README.md"],
288+
swiftSettings: strictConcurrencySettings
287289
),
288290
.executableTarget(
289291
name: "NIOEchoServer",

0 commit comments

Comments
 (0)