With the introduction of Xcode 13 RC, our libraries started to fail to compile for macOS - presumably because swift 5.5 now supports macOS 11, but the Swift Concurrency symbols are not available. What is the proper way to wrap Concurrency calls in code that support multiple Xcode versions and platforms?
Somewhat related; the discussion here. Would something like
if #canImport(_Concurrency) work perhaps?
#if compiler(>=5.5) && canImport(_Concurrency) seems to work. Thanks!
The remaining question from https://github.com/swift-server/swift-service-lifecycle/issues/110#issuecomment-924187735 still applies: will
#if canImport(_Concurrency) stick around in future Swift versions?