Skip to content

Commit e0eaead

Browse files
committed
Complete async Observable on CancellationError
1 parent 662d91b commit e0eaead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RxSwift/Observable+Concurrency.swift

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public extension AsyncSequence {
6666
observer.onNext(value)
6767
}
6868

69+
observer.onCompleted()
70+
} catch is CancellationError {
6971
observer.onCompleted()
7072
} catch {
7173
observer.onError(error)

0 commit comments

Comments
 (0)