📅  最后修改于: 2022-03-11 15:01:41.646000             🧑  作者: Mango
function showValue() {
return setTimeout(function() {
function* gen() {
console.log('yielding');
yield 100;
};
var it = gen();
console.log(it.next().value);
}, 1000);
}
showValue();
console.log(showValue());