obstructed
obstructed.js checks if the main thread is busy, executing a callback whenever it happens. It runs on the browser and on the server. The API is compatible with blocked.
Installation
npm install --save obstructed
Usage
const timer =
Use the returned timer and clearInterval
on it to stop the lib on checking if
the main thread is blocked.
// Uses the previously defined `timer`
Credits
- Icon by Edward Boatman
- blocked
caiogondim.com · GitHub @caiogondim · Twitter @caio_gondim