residualvm/residualvm — pull request #502 by klusark (2012-01-24 01:38:11+00:00)
Title: EMI: Implement sleep_for in the engine

I don't know if this is the best way to do it, but it is the best way I could come up with.

In Grim sleep_for is defined in _system.lua but it is not in EMI. What sleep_for does is just sleep the current coroutine for a given amount of milliseconds. The way grim does it is by calling break_here in a busy loop. This essentially does the same thing as that.

If anyone knows of a better way to do this that would be awesome.