I am not clear with pub/sub with existing doc. I have gen_server named ex_serv which has function dothis/[0,1,2]. I try to subscribe gproc_ps:subscribe(l, ex_serv)/gproc_ps:subscribe(l, {ex_serv, dothis}) and gproc_ps:publish(l, ex_serv, dothis)/gproc_ps:publish(l, {ex_serv, dothis}, MSG) but it did not work. I tried various options and also tried gproc:reg and gproc:send nothing works. I was expecting when message gets published it will call/deliver that message to ex_serv:dothis. Am I doing something wrong?
I am not clear with pub/sub with existing doc. I have gen_server named ex_serv which has function dothis/[0,1,2]. I try to subscribe gproc_ps:subscribe(l, ex_serv)/gproc_ps:subscribe(l, {ex_serv, dothis}) and gproc_ps:publish(l, ex_serv, dothis)/gproc_ps:publish(l, {ex_serv, dothis}, MSG) but it did not work. I tried various options and also tried gproc:reg and gproc:send nothing works. I was expecting when message gets published it will call/deliver that message to ex_serv:dothis. Am I doing something wrong?