in let observable = Observable<String>.create { observer in observer.onNext("A") observer.onError(TestError.test) observer.onNext(“B") observer.onCompleted() return Disposables.create() } return observable.materialize() } output1 = result .elements() .subscribe(onNext: { print("elements, onNext: \($0)”) }, onError: { print("elements, onError: \($0)") },) error = result .errors() .subscribe(onNext: { print("errors, onNext: \($0)") }, onError: { print("errors, onError: \($0)") }) —— ग़ྗ —— elements, onNext: A elements, onNext: A elements, onCompleted: errors, onNext: test errors, onNext: test errors, onCompleted: