暫停

suspend 指令會暫停指定的執行緒。如果執行緒已暫停,則指令不會發揮作用。

語法

suspend threadName
suspend #Thread threadName

引數

threadName

指定要暫停的執行緒


回饋