Hello all,

I'm looking for the right way to implement Javascript-like setInterval and setTimeout in D.

I don't want to use multiple threads + sleep as an implementation. It needs to be single threaded. I was thinking along the lines of creating a timer using ualarm/settimer and listening to SIGALARM. I want it to be efficient as i'll be using it for timing out HTTP requests.

Can someone guide me in the right direction?

Thanks for any help,
Shripad K.

Reply via email to