Drop @unchecked from UnixSignalsSequence.Storage's Sendable conformance (#265)

### Motivation

`UnixSignalsSequence.Storage` is marked `@unchecked Sendable`, but its
stored properties are `let stateMachine: LockedValueBox<StateMachine>`
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.
This commit is contained in:
Daiki Matsudate authored and GitHub committed 2026-10-30 14:27:13 +01:00
1 parent 38a43c7a99
commit 65771b62e7
1 file changed
+1 -1
@@ -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<StateMachine>
#if !os(Windows) && !os(WASI)
fileprivate let sources: [Source]