ios - What are examples of hot and cold signal in ReactiveCocoa? -


in answer how make racsignal become hot?, @erikprice explains hot , cold signal

a "hot signal" signal sends values (and presumably work) regardless of whether has subscribers. "cold signal" signal defers work , sending of values until has subscriber. , cold signal perform work , send values each subscriber.

i ask if can demonstrate examples of hot , cold signals, clearer

a hot signal considered signal sends values regardless of whether has subscribers

i using hot signal monitoring network reachability. button action realized through raccommand example of hot signal.

a "cold signal" signal defers work , sending of values until has subscriber.

this 1 demonstrated making afnetworking reactive. create method returns signal representing request. whenever subscribe signal, networking request performed. subscriber being sendnext: , sendcompleted when request successful , senderror: when request fails.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -