Open lhoward opened 4 weeks ago
Workaround:
diff --git a/Sources/AsyncSubjects/AsyncCurrentValueSubject.swift b/Sources/AsyncSubjects/AsyncCurrentValueSubject.swift
index 5225105..dd5b111 100644
--- a/Sources/AsyncSubjects/AsyncCurrentValueSubject.swift
+++ b/Sources/AsyncSubjects/AsyncCurrentValueSubject.swift
@@ -91,7 +91,7 @@ public final class AsyncCurrentValueSubject<Element>: AsyncSubject where Element
func handleNewConsumer() -> (iterator: AsyncBufferedChannel<Element>.Iterator, unregister: @Sendable () -> Void) {
let asyncBufferedChannel = AsyncBufferedChannel<Element>()
- let (terminalState, current) = self.state.withCriticalRegion { state -> (Termination?, Element) in
+ let (terminalState, current) = self.state.withCriticalRegion { state in
(state.terminalState, state.current)
}
Description
Seeing a crash compiling AsyncExtensions with Swift 6.0.2
on Android.OK, interestingly I see this targeting macOS with the Swift 6.0.2 toolchain from swift.org, but not Xcode 16.1.
Reproduction
Stack dump
Expected behavior
Compiles OK.
Environment
Failing:
Succeeding: