Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/AsyncSequenceValidation/Clock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extension AsyncSequenceValidationDiagram {
}
}

@available(AsyncAlgorithms 1.0, *)
public protocol TestClock: Sendable {
associatedtype Instant: TestInstant

Expand All @@ -30,6 +31,7 @@ public protocol TestClock: Sendable {
func sleep(until deadline: Self.Instant, tolerance: Self.Instant.Duration?) async throws
}

@available(AsyncAlgorithms 1.0, *)
public protocol TestInstant: Equatable {
associatedtype Duration
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ final class MultiProducerSingleConsumerAsyncChannelTests: XCTestCase {
backpressureStrategy: .watermark(low: 2, high: 4)
)
let channel = channelAndSource.takeChannel()
var source: MultiProducerSingleConsumerAsyncChannel.Source! = consume channelAndSource.source
var source: MultiProducerSingleConsumerAsyncChannel<Int, Never>.Source! = consume channelAndSource.source
Copy link
Copy Markdown
Author

@azarovalex azarovalex Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is (hopefully) a workaround for compiler crash: swiftlang/swift#88530

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my fix for compiler crash was merged but "nighly" docker image used by CI is quite old so let's just keep this change


group.addTask {
var source = source.take()!
Expand Down
Loading