[erlang-questions] gen_fsm - timeout ?
Tue Sep 19 11:06:34 CEST 2006
On 19/09/06, Sanjaya Vitharana <> wrote:
> Hi ... ALL,
> Behavior: Gen FSM
> Want to be in state "open" (see below) for limited time (assume 5 sec)
> until some EXPECTED event (as_E) comes, have to move to some other state
> if the expected event not received in that time. All other events should
> be ignored in state "open".
One way around this is to not use the built-in timeout functionality
i.edrop the timeout value from the return value of the callback
can use erlang:send_after/3 to send yourself a message 5 seconds later.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions