Skip to content

Commit 31c8609

Browse files
authored
Drop support for Swift 5.8 (#470)
Motivation: Only the last 3 versions of Swift are supported. Modifications: Update the Swift tools version in Package.swift. Remove code which can now never be compiled. Remove legacy docker configuration. Result: Only Swift 5.9+ supported.
1 parent bc93af2 commit 31c8609

File tree

4 files changed

+1
-86
lines changed

4 files changed

+1
-86
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.8
1+
// swift-tools-version:5.9
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the SwiftNIO open source project

Sources/NIOHTTP2/HTTP2CommonInboundStreamMultiplexer.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -550,19 +550,3 @@ extension NIOHTTP2AsyncSequence.AsyncIterator: Sendable {}
550550

551551
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
552552
extension NIOHTTP2AsyncSequence: Sendable where Output: Sendable {}
553-
554-
#if compiler(<5.9)
555-
// this should be available in the std lib from 5.9 onwards
556-
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
557-
extension AsyncThrowingStream {
558-
static func makeStream(
559-
of elementType: Element.Type = Element.self,
560-
throwing failureType: Failure.Type = Failure.self,
561-
bufferingPolicy limit: Continuation.BufferingPolicy = .unbounded
562-
) -> (stream: AsyncThrowingStream<Element, Failure>, continuation: AsyncThrowingStream<Element, Failure>.Continuation) where Failure == Error {
563-
var continuation: AsyncThrowingStream<Element, Failure>.Continuation!
564-
let stream = AsyncThrowingStream<Element, Failure>(bufferingPolicy: limit) { continuation = $0 }
565-
return (stream: stream, continuation: continuation!)
566-
}
567-
}
568-
#endif

Tests/NIOHTTP2Tests/ConfiguringPipelineAsyncMultiplexerTests.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -579,17 +579,3 @@ final class ConfiguringPipelineAsyncMultiplexerTests: XCTestCase {
579579
}
580580
}
581581
}
582-
583-
#if compiler(<5.9)
584-
// this should be available in the std lib from 5.9 onwards
585-
extension AsyncStream {
586-
internal static func makeStream(
587-
of elementType: Element.Type = Element.self,
588-
bufferingPolicy limit: Continuation.BufferingPolicy = .unbounded
589-
) -> (stream: AsyncStream<Element>, continuation: AsyncStream<Element>.Continuation) {
590-
var continuation: AsyncStream<Element>.Continuation!
591-
let stream = AsyncStream<Element>(bufferingPolicy: limit) { continuation = $0 }
592-
return (stream: stream, continuation: continuation!)
593-
}
594-
}
595-
#endif

docker/docker-compose.2204.58.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)