[erlang-questions] Erlang Scheduler for Recurring Events

Jon Watte <>
Thu Aug 25 00:17:20 CEST 2011


I second the use of timer:send_interval. Your gen_server can use this within
init(), and will get   timer messages sent to its handle_info() callback.

Sincerely,

jw


--
Americans might object: there is no way we would sacrifice our living
standards for the benefit of people in the rest of the world. Nevertheless,
whether we get there willingly or not, we shall soon have lower consumption
rates, because our present rates are unsustainable.



On Wed, Aug 24, 2011 at 6:54 AM, Anders Nygren <>wrote:

> Hi
> I think that the simplest way is to just use timer:apply_interval or
> timer:send_interval
> from stdlib.
>
> /Anders
>
> On Wed, Aug 24, 2011 at 6:51 AM, Hank Knight <> wrote:
> > Hello,
> >
> > I need to scheduler a number of recurring events using Erlang.  Some
> > events need to be triggered every second, some every three seconds and
> > some every minute.  Any simple advise on how to do this or what tools
> > to do?
> >
> > - Hank
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110824/2176c046/attachment.html>


More information about the erlang-questions mailing list