You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tayloraswift opened this issue
Sep 29, 2024
· 5 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.off topicResolution: Is beyond the scope of the Swift project (Xcode, proprietary Apple frameworks, etc.)
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
The text was updated successfully, but these errors were encountered:
tayloraswift
added
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
labels
Sep 29, 2024
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.off topicResolution: Is beyond the scope of the Swift project (Xcode, proprietary Apple frameworks, etc.)
Description
the
DispatchQoS
andDispatchSpecificKey
are conditionallySendable
on macOS, but not on linux for some reason, which creates a needless portability barrier for developers that aim to support both platforms.Reproduction
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
The text was updated successfully, but these errors were encountered: