Forcing a Lua script to exit

后端 未结 10 1031
长情又很酷
长情又很酷 2020-12-23 18:49

How do you end a long running Lua script?

I have two threads, one runs the main program and the other controls a user supplied Lua script. I need to kill the thread

10条回答
  •  情书的邮戳
    2020-12-23 18:50

    possibly useless, but in the lua I use (luaplayer or PGELua), I exit with

    os.exit() 
    

    or

    pge.exit()
    

提交回复
热议问题