anchor.diff:              Pid ! Event,
               ignored
       end.
  -
  -
  -subscribe_node(Node, #subscribe_all_state{name=Name, func=Fun,
  -                                          func_state=FState}) ->
  -    subscribe({Name, Node}, Fun, FState).
  
positive.code: -behaviour(gen_event).
  
  -record(state, {func, func_state}).
  -record(subscribe_all_state, {noderefs, name, func, func_state}).
  
  -export([code_change/3, init/1, handle_call/2, handle_event/2, handle_info/2,
           terminate/2]).
  
  -export([subscribe/1, subscribe/3,
           subscribe_all/1, subscribe_all/3,
           unsubscribe/2, unsubscribe_all/1]).
  
  
  %%
  
negative.code:                                    #state{func=Fun, func_state=State}),
      Ref.
  
  unsubscribe(Name, Ref) ->
      gen_event:delete_handler(Name, {?MODULE, Ref}, unsubscribed).
  
  %%
  %% gen_event callbacks
  