Skip to content

Commit 9b173ab

Browse files
author
Ryan Dingman
committed
Mark APIs that reference SequenceOutput.Buffer with @available(SubprocessSpan, *) so they compile with Swift 6.2
1 parent 7b6899c commit 9b173ab

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Sources/Subprocess/AsyncBufferSequence.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public struct AsyncBufferSequence: AsyncSequence, Sendable {
7575
}
7676

7777
extension TrackedPlatformDiskIO {
78+
#if SubprocessSpan
79+
@available(SubprocessSpan, *)
80+
#endif
7881
internal enum StreamStatus {
7982
case data(SequenceOutput.Buffer)
8083
case endOfStream(SequenceOutput.Buffer)

Sources/Subprocess/Platforms/Subprocess+Unix.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ extension CreatedPipe {
461461

462462
// MARK: - TrackedDispatchIO extensions
463463
extension TrackedDispatchIO {
464+
#if SubprocessSpan
465+
@available(SubprocessSpan, *)
466+
#endif
464467
internal func readDataStream(upToLength maxLength: Int) -> AsyncThrowingStream<StreamStatus, Swift.Error> {
465468
return AsyncThrowingStream<StreamStatus, Swift.Error> { continuation in
466469
self.dispatchIO.read(

Sources/Subprocess/Platforms/Subprocess+Windows.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,9 @@ extension CreatedPipe {
10431043
}
10441044

10451045
extension TrackedFileDescriptor {
1046+
#if SubprocessSpan
1047+
@available(SubprocessSpan, *)
1048+
#endif
10461049
internal func readDataStream(upToLength maxLength: Int) -> AsyncThrowingStream<StreamStatus, Swift.Error> {
10471050
return AsyncThrowingStream<StreamStatus, Swift.Error> { continuation in
10481051
do {

0 commit comments

Comments
 (0)