Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DispatchQoS and DispatchSpecificKey should have consistent Sendable conformances between macOS and linux #847

Open
tayloraswift opened this issue Oct 1, 2024 · 0 comments

Comments

@tayloraswift
Copy link
Member

this issue originally filed at swiftlang/swift#76773

Description

the DispatchQoS and DispatchSpecificKey are conditionally Sendable on macOS, but not on linux for some reason, which creates a needless portability barrier for developers that aim to support both platforms.

Reproduction

import Dispatch
func f()
{
    let x:DispatchQoS = { fatalError() }()
    Task.init
    {
        let y:DispatchQoS = x
        let _ = y
    }
    Task.init
    {
        let y:DispatchQoS = x
        let _ = y
    }
}

Expected behavior

the types should have consistent conformances across platforms

Environment

$ swiftc --version
Swift version 6.0.1 (swift-6.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu

Additional information

the original context was attempting to build GRDB.swift on linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant