FSM advantages?

Inswitch Solutions - Erlang Evaluation <>
Thu Jan 23 16:54:30 CET 2003


Vance,

What does it mean, timeout will be returned ?

Thanks,
Eduardo Figoli
INSwitch Solutions


----- Original Message -----
From: "Vance Shipley" <>
To: "Eduardo Figoli" <>
Cc: <>
Sent: Wednesday, January 22, 2003 8:27 PM
Subject: Re: FSM advantages?


>
> OK, I stand corrected.  The documentation for gen_fsm:sync_send_event/2,3
> clearly says:
>
> If no reply is received within the specified time, the
> function call fails.
>
>   -Vance
>
> On Wed, Jan 22, 2003 at 01:48:51PM -0500, Vance Shipley wrote:
> }
> }  On Thu, Jan 23, 2003 at 03:18:01PM +0100, Eduardo Figoli wrote:
> }  }
> }  }  Thank you I've found the  function
> }  }  sync_send_event(FsmRef, Event, Timeout) -> Reply
> }  }  which does exactly what I need.
> }  }
> }  }  I just only need to know what's the reply term when the Timeout
ocurr?
> }
> }  This doesn't seem to be documented does it?  I don't know the answer as
> }  I've never found a reason to program synchronously in Erlang.  Try it
and
> }  see.  I suspect the answer is the atom timeout.
> }
> }  -Vance
> }




More information about the erlang-questions mailing list