Appearance
const core = require('cheese-js');
public create(callback: Callback): Thread
用法示例:
const thread = new core.thread; const base = core.base; let th =thread.create(()= >{ while (true){ console.log("我是子线程") base.sleep(1000) }) base.sleep(1000) //一秒后停止 th.exit()