From 65771b62e716c4518f745c43873ea496d3ddece1 Mon Sep 17 00:00:00 2001 From: Daiki Matsudate <20222809+d-date@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:27:13 +0900 Subject: [PATCH] Drop @unchecked from UnixSignalsSequence.Storage's Sendable conformance (#265) ### Motivation `UnixSignalsSequence.Storage` is marked `@unchecked Sendable`, but its stored properties are `let stateMachine: LockedValueBox` and `let sources: [Source]` (where `Source` is already checked `Sendable`). The compiler can verify this conformance, and keeping `@unchecked` means it would not catch a future change that breaks sendability. ### Modifications - Replace `@unchecked Sendable` with `Sendable` on `UnixSignalsSequence.Storage`. ### Result No behavior change; the conformance is now checked by the compiler. Verified locally on macOS (Swift 6.4.2): `swift build --build-tests -Xswiftc -strict-concurrency=complete` produces no new diagnostics and `swift test` passes. Linux is left to CI. --- Sources/UnixSignals/UnixSignalsSequence.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/UnixSignals/UnixSignalsSequence.swift b/Sources/UnixSignals/UnixSignalsSequence.swift index 692b7c1..41c999c 100644 --- a/Sources/UnixSignals/UnixSignalsSequence.swift +++ b/Sources/UnixSignals/UnixSignalsSequence.swift @@ -94,7 +94,7 @@ extension UnixSignalsSequence { @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) extension UnixSignalsSequence { - fileprivate final class Storage: @unchecked Sendable { + fileprivate final class Storage: Sendable { private let stateMachine: LockedValueBox #if !os(Windows) && !os(WASI) fileprivate let sources: [Source]