[erlang-questions] gen_fsm - timeout ?

Chandru <>
Tue Sep 19 11:06:34 CEST 2006

On 19/09/06, Sanjaya Vitharana <> wrote:
>  Hi ... ALL,
> Behavior: Gen FSM
> Scenario:
> 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
function. You
can use erlang:send_after/3  to send yourself a message 5 seconds later.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060919/14bbf04e/attachment.html>

More information about the erlang-questions mailing list