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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -