Sam Hu wrote:
Thank you both so much.
In DFL there is a Timer class but I can not get it work:
It compiled but just print 2 lines of message:
Before timer ...
After timer...
I am asking Chris Miller on DFL forum regarding this issue.
In DWT,there is a Runnable class I think it can gain the same result ,but not
test yet.
Regards,
Sam
I'm not sure about that Timer class, but in D, a program exits when main
exits, even if there are background threads. You'd need some sort of
Thread.join in your main function.