[erlang-questions] Erlang Scheduler for Recurring Events
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.
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 <anders.nygren@REDACTED>wrote:
> I think that the simplest way is to just use timer:apply_interval or
> from stdlib.
> On Wed, Aug 24, 2011 at 6:51 AM, Hank Knight <hknight555@REDACTED> 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
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions