[erlang-questions] monitor/2

Geoff Cant <>
Sun Mar 16 05:06:17 CET 2014


This single change would eliminate a whole lot of book keeping that processes currently need to do. The more I think about it, the more uses I have for it.

Maybe also erlang:monitors() -> [{Ref, What, UserData}]. To get the list of things you are currently monitoring?

-Geoff

On 2014-03-15, at 16:21 , Tony Rogvall <> wrote:

> I would like to see (and have been for a long time :):
> 
> monitor(name, abc) -> reference()
> 
> and then be able get notifications when the name abc is registered and unregistered.
> 
> Then notifications could be something like:
> 
> {'UP',Ref, name, Pid, abc }
> {'UP',Ref, name, Port, abc }
> {'DOWN', Ref, name, Pid, abc}
> {'DOWN', Ref, name, Port, abc}
> 
> /Tony
> 
> 
> On 14 mar 2014, at 23:50, Loïc Hoguin <> wrote:
> 
>> Hello,
>> 
>> I want to discuss monitor/2.
>> 
>> It's been there for a while, and it's always taking 'process' as first argument. Any plans to add anything else? And if nothing is foreseen before the end of times, any plans to add a monitor/1 instead?
>> 
>> Thanks.
>> 
>> -- 
>> Loïc Hoguin
>> http://ninenines.eu





More information about the erlang-questions mailing list