Events/Observer pattern

Mats Cronqvist mats.cronqvist@REDACTED
Thu Nov 24 09:30:40 CET 2005

   the prf contribution in jungerl does exactly this.


doublec wrote:
> I want to have a process that sends information out to other processes at regular intervals. Those other processes should be able to register to receive information or unregister to stop receiving them. Classic 'observer' pattern stuff in OO.
> I thought of having the information provider process accept pid's on register, and when it needs to send out the information it just goes over the list of pid's sending a message to the receiver. 
> Is that a reasonable approach? Is there anything in the standard library that provides this functionality already that I should be looking at?
> _________________________________________________________
> Sent using Mail2Forum (

More information about the erlang-questions mailing list