From e0eaead01d9a639c3e7f0bb66d32511dab809c26 Mon Sep 17 00:00:00 2001 From: Shai Mishali Date: Fri, 4 Oct 2024 23:25:58 +0300 Subject: [PATCH] Complete async Observable on CancellationError --- RxSwift/Observable+Concurrency.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RxSwift/Observable+Concurrency.swift b/RxSwift/Observable+Concurrency.swift index 45ad05ede..af3ec72bc 100644 --- a/RxSwift/Observable+Concurrency.swift +++ b/RxSwift/Observable+Concurrency.swift @@ -66,6 +66,8 @@ public extension AsyncSequence { observer.onNext(value) } + observer.onCompleted() + } catch is CancellationError { observer.onCompleted() } catch { observer.onError(error)