gen_fsm:send_event_after

Sean Hinde sean.hinde@REDACTED
Mon Apr 25 13:13:23 CEST 2005


Hi,

On 25 Apr 2005, at 11:57, Joel Reymont wrote:

> Folks,
>
> According to the manual send_event_after does not take a reference to a
> gen_fsm. How does it know where to send the event when I'm using 
> several
> gen_fsm for example?

It is designed specifically for sending events to its own gen_fsm 
process. There is an implicit self() in the implementation:

send_event_after(Time, Event) ->
     erlang:start_timer(Time, self(), {'$gen_event', Event}).

Sean




More information about the erlang-questions mailing list