1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/tests/010_set_interval.ts

8 lines
123 B
TypeScript
Raw Normal View History

const id = setInterval(function() {
2018-08-16 11:28:02 -04:00
console.log("test");
}, 200);
setTimeout(function() {
2018-08-16 11:28:02 -04:00
clearInterval(id);
}, 500);