ios - How do I create a ReactiveCocoa subscriber that receives a signal only once, then unsubscribes/releases itself? -


i'm registering subscriber property signal this:

[racable(self.test) subscribenext:^(id x) {         nslog(@"signal fired!");  }]; 

the default functionality fires every single time self.test changed, want fire once, , unsubscribe. there "once" argument or modifier can pass rac when create subscriber?

[[racable(self.test) take:1] subscribenext:^(id x) {     nslog(@"signal fired!"); }]; 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -