Skip to content

Commit

Permalink
Complete async Observable on CancellationError
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed Oct 4, 2024
1 parent 662d91b commit e0eaead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RxSwift/Observable+Concurrency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public extension AsyncSequence {
observer.onNext(value)
}

observer.onCompleted()
} catch is CancellationError {
observer.onCompleted()
} catch {
observer.onError(error)
Expand Down

0 comments on commit e0eaead

Please sign in to comment.