val); yield Promise.delay(500); this.ping(val+1); }); var a = new PingPong(); a.ping(0);. Running the example: $ node test.js Ping? 0 Pong! 1 Ping? 2 Pong!
確定! 回上一頁