这是我的代码片段。问题是它没有达到 subscribeCompleted 块。当我在 flattenmap 块内返回空信号时,它应该立即完成。不是吗?
RACObserve(self.object, "mobile").skip(2).doNext { (_) -> Void in
self.tabBarController?.showHud("Updating Profile")
}.flattenMap { (object) -> RACStream! in
return RACSignal.empty()
}.subscribeCompleted { () -> Void in
log.error("Completed")
self.tabBarController?.hideHud()
}