block-sync

synchronously blocks a thread

Usage no npm install needed!

<script type="module">
  import blockSync from 'https://cdn.skypack.dev/block-sync';
</script>

README

block-sync

synchronously blocks a thread

usage:

import block from "block-sync";

block(100); // blocks for 100ms