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 -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -