mirror of https://github.com/sveltejs/svelte
parent
373f0ef389
commit
f970b61c5a
@ -1,14 +1,14 @@
|
||||
<script>
|
||||
let it = gen();
|
||||
it.next();
|
||||
const it = gen();
|
||||
it.next();
|
||||
|
||||
setTimeout(() => {
|
||||
it.next();
|
||||
}, 20)
|
||||
setTimeout(() => {
|
||||
it.next();
|
||||
}, 20)
|
||||
|
||||
function* gen() {
|
||||
while (true) {
|
||||
yield;
|
||||
}
|
||||
}
|
||||
function* gen() {
|
||||
while (true) {
|
||||
yield;
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in new issue