Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// create a signal
RACSubject *subject = [RACSubject subject];
// subscribe notification
[subject subscribeNext:^(id _Nullable x) {
NSLog(@"content 2:%@", x);
// send message
[subject sendNext:@"message 2"];
// output
// content 2:message 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment