I'm trying to implement simple producer consumer example with rx, just so that i get some practical taste of what its like...
So i think i need to declare a subject "produced" to which all consumers will subscribe,
then when a producer produces he emits a result as an subject event and onNext(value) will be executed...
but i need the onNext to be handled by one subscriber at a time... (also do i have to unsubscribe so that same consumer didnt get the job while its doing another?)
Thanks,
i appreciate any help with this,
i'm new to RX and want to understand what are best uses of it...