local thread = require("thread") local t -- 此样例需要t的upvalue t = thread.create(function() print("start") thread.current():suspend() print("after suspend") os.sleep() print("after sleep") end)