File tree Expand file tree Collapse file tree 2 files changed +23
-22
lines changed
Sources/ComposableArchitecture Expand file tree Collapse file tree 2 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -206,5 +206,6 @@ import SwiftUI
206206 }
207207 . eraseToEffect ( )
208208 }
209- } #endif
209+ }
210+ #endif
210211#endif
Original file line number Diff line number Diff line change @@ -454,27 +454,27 @@ private struct HashableWrapper<Value>: Hashable {
454454 . first ( where: { !predicate( $0) } )
455455 } else {
456456 let cancellable = Box < AnyCancellable ? > ( wrappedValue: nil )
457- try ? await withTaskCancellationHandler (
458- handler: { cancellable. wrappedValue? . cancel ( ) } ,
459- operation: {
460- try Task . checkCancellation ( )
461- try await withUnsafeThrowingContinuation {
462- ( continuation: UnsafeContinuation < Void , Error > ) in
463- guard !Task. isCancelled else {
464- continuation. resume ( throwing: CancellationError ( ) )
465- return
466- }
467- cancellable. wrappedValue = self . publisher
468- . filter { !predicate( $0) }
469- . prefix ( 1 )
470- . sink { _ in
471- continuation. resume ( )
472- _ = cancellable
473- }
474- }
475- }
476- )
477- }
457+ try ? await withTaskCancellationHandler (
458+ handler: { cancellable. wrappedValue? . cancel ( ) } ,
459+ operation: {
460+ try Task . checkCancellation ( )
461+ try await withUnsafeThrowingContinuation {
462+ ( continuation: UnsafeContinuation < Void , Error > ) in
463+ guard !Task. isCancelled else {
464+ continuation. resume ( throwing: CancellationError ( ) )
465+ return
466+ }
467+ cancellable. wrappedValue = self . publisher
468+ . filter { !predicate( $0) }
469+ . prefix ( 1 )
470+ . sink { _ in
471+ continuation. resume ( )
472+ _ = cancellable
473+ }
474+ }
475+ }
476+ )
477+ }
478478 }
479479 }
480480
You can’t perform that action at this time.
0 commit comments