You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/loop-protect-async-opt-out/main.svelte

13 lines
209 B

<script>
export async function run_async_function() {
await loop();
}
async function loop() {
let i = 0;
while (i ++ < 5) {
await new Promise(resolve => setTimeout(resolve, 20));
}
}
</script>