@async-generator/interval-with-reset
generate integers after an constant amount of time and a function to reset clock
Usage no npm install needed!
<script type="module">
import asyncGeneratorIntervalWithReset from 'https://cdn.skypack.dev/@async-generator/interval-with-reset';
</script>