Add support for Swift 6 concurrency #462
Labels
kind/enhancement
Improvements to existing feature.
semver/none
No version bump required.
size/S
Small task. (A couple of hours of work.)
status/blocked
Waiting for another issue.
Milestone
Expected behavior
The project must compile in Swift 6 language mode with no warnings
Actual behavior
We enforce Swift 5 language mode on
AWSLambdaRuntimeCore
target because of concurrency warnings / errors on[
LambdaHandlers.swift
] has two warning here and hereLambda+LocalServer.swift
: waiting for Swift NIO to provide an Swift 6 compliant HTTP Server exampleSee https://github.com/apple/swift-nio/blob/main/Sources/NIOHTTP1Server/main.swift
LambdaRuntimeCore.swift
: adding support for cancellable Task introduced a couple of concurrency warning.Steps to reproduce
swift build -Xswiftc -strict-concurrency=complete
If possible, minimal yet complete reproducer code (or URL to code)
n/a
What version of this project (
swift-aws-lambda-runtime
) are you using?main
Swift version
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Amazon Linux 2 docker image version
swift:amazonlinux2
The text was updated successfully, but these errors were encountered: