www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Using Async task with timer

reply Sudhi <sudheendra.malli gmail.com> writes:
Hi All,

I am trying to use an Async task which would run at every 
interval of time.

I could not find any example for this. Can some one enlighten me 
on this. I did not find much documentation on timers also.

Thanks,
Sudhi
Feb 05 2019
parent reply Heromyth <bitworld qq.com> writes:
On Wednesday, 6 February 2019 at 05:03:26 UTC, Sudhi wrote:
 Hi All,

 I am trying to use an Async task which would run at every 
 interval of time.

 I could not find any example for this. Can some one enlighten 
 me on this. I did not find much documentation on timers also.

 Thanks,
 Sudhi
Here is an example, https://github.com/huntlabs/hunt/blob/master/examples/UnitTest/source/test/ScheduledThreadPoolTest.d You can have a try.
Feb 05 2019
parent Sudhi <sudheendra.malli gmail.com> writes:
On Wednesday, 6 February 2019 at 05:17:51 UTC, Heromyth wrote:
 On Wednesday, 6 February 2019 at 05:03:26 UTC, Sudhi wrote:
 Hi All,

 I am trying to use an Async task which would run at every 
 interval of time.

 I could not find any example for this. Can some one enlighten 
 me on this. I did not find much documentation on timers also.

 Thanks,
 Sudhi
Here is an example, https://github.com/huntlabs/hunt/blob/master/examples/UnitTest/source/test/ScheduledThreadPoolTest.d You can have a try.
Thanks you, Example has helped me a lot.
Feb 06 2019