difference between IntervalMs and DelayMs

"[email protected] [rabbit-semi]" <[email protected]> 30 Sep 2016 12:21:07 -0700
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
Hello,
 

 I have couple costate loop. When I use wait(DelayMs(500)) after task is finished and make costate to wait, sometimes my controller is frozen, but when I use wait(IntervalMs(500)), it seems controller is working properly. 
 

 Does any body know the difference between these two functions?
 

 Thanks a lot.