swiftlang / swift-corelibs-libdispatch

The libdispatch Project, (a.k.a. Grand Central Dispatch), for concurrency on multicore hardware
swift.org
Apache License 2.0
2.47k stars 460 forks source link

[6.0] Adopt Sendable in DispatchQueue and similar types #823

Closed ktoso closed 6 months ago

ktoso commented 6 months ago

Description: A few well known types like DispatchSemaphore, DispatchIO, DispatchGroup, DispatchQueue, DispatchSource should all be Sendable. This also adds a missing (as compared to Apple platforms) @Sendable to queue.async APIs. Risk: Low, missing annotations. Reviewed by: @rokhinip Testing: CI testing Original PR: https://github.com/apple/swift-corelibs-libdispatch/pull/821 Radar: rdar://123284763

ktoso commented 6 months ago

@swift-ci please test