in // Now we can show our tweets }, failure: { (error) -> Void in presentError(error) }) }, failure: { (error) -> Void in presentError(error) }) }, failure: { (error) -> Void in presentError(error) })
RACStream! in return client.fetchTweetsAfterTweet(tweets.last) } .subscribeError({ (error) -> Void in presentError(error) }, completed: { () -> Void in // Now we can show our tweets })
{ // function doesn’t return anything // it jumps into two callbacks based on return } func login() -> RACSignal { // function has a native return value // a data stream object that we can observe }