func mockFetch() -> Observable<Bool> { return Observable.create { observer in observer.on(.next(true)) observer.on(.completed) return Disposables.create() } }
mockFetch().subscribe(onNext: { _ in print("done") }).disposed(by: disposeBag)