incarporating an infinite thread in supervision tree

Lennart Ohman lennart.ohman@REDACTED
Mon Mar 6 15:28:06 CET 2006


Take a look at:
erlang:send_after/3 and let a gen_server handle the incomming
message in its handle_info function.

Best Regards,
Lennart


-------------------------------------------------------------
Lennart Ohman                   office  : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 67 35
Sehlstedtsgatan 6               fax     : +46-8-667 82 30
SE-115 28, STOCKHOLM, SWEDEN    email   : lennart.ohman@REDACTED

> -----Original Message-----
> From: owner-erlang-questions@REDACTED [mailto:owner-erlang-
> questions@REDACTED] On Behalf Of Surindar Sivanesan
> Sent: Monday, March 06, 2006 3:19 PM
> To: erlang-questions@REDACTED
> Subject: incarporating an infinite thread in supervision tree
> 
> 
> Dear all,
> I has a thread which has a function which call another function every 2
> minutes ( infinitely till the timer is stopped).
> Is it possible to incarporate this functionality in a supervision tree? If
> so please give me the solution.
> --
> with regards,
> S.Surindar





More information about the erlang-questions mailing list