DOWN record

Tony Rogvall tony@REDACTED
Wed Jun 16 14:51:29 CEST 2010


Hi list.

A quick survey.

Are there more people than me that sometimes define the record:

-record('DOWN',
	{
	  ref,   %% monitor reference
	  type,  %% type of object 'process'
	  id,    %% object id (pid)
	  reason %% reason for termination
	 }).

?

To simplify matching of 'DOWN' messages ?
Example:

handle_info(#'DOWN' { ref=Ref }, State) ->
	...


/Tony



More information about the erlang-questions mailing list