Coroutine based scheduler for eLua