diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-09 12:17:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 12:17:08 -0700 |
commit | fb87cb38eca7a2d490c3e70738407dc6538e80d3 (patch) | |
tree | 29e81258ca714594f0b6b325ddd41bb5f8c54257 /tests/010_set_interval.ts | |
parent | 0e96125260f2d78718e57cac95c7dc672bb24e57 (diff) |
First pass at setTimeout with Tokio (#434)
Diffstat (limited to 'tests/010_set_interval.ts')
-rw-r--r-- | tests/010_set_interval.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/010_set_interval.ts b/tests/010_set_interval.ts new file mode 100644 index 000000000..e013d00bc --- /dev/null +++ b/tests/010_set_interval.ts @@ -0,0 +1,7 @@ +const id = setInterval(function() { + console.log("test") +}, 200); + +setTimeout(function() { + clearInterval(id) +}, 500) |