mirror of
https://github.com/apple/container.git
synced 2026-09-13 03:05:42 +00:00
Add comments clarifying thread-safety (#282)
This commit is contained in:
@@ -53,6 +53,7 @@ public final class AsyncSignalHandler: Sendable {
|
||||
|
||||
struct State: Sendable {
|
||||
var conts: [AsyncStream<Int32>.Continuation] = []
|
||||
// `sources` isn't used concurrently.
|
||||
nonisolated(unsafe) var sources: [any DispatchSourceSignal] = []
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user