Easiest way to make lua script wait/pause/sleep/block for a few seconds?

前端 未结 19 1422
礼貌的吻别
礼貌的吻别 2020-12-03 00:41

I cant figure out how to get lua to do any common timing tricks, such as

  • sleep - stop all action on thread

  • pause/wait - don\'t go on to the

19条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 01:31

    Pure Lua uses only what is in ANSI standard C. Luiz Figuereido's lposix module contains much of what you need to do more systemsy things.

提交回复
热议问题