# node-blocked **Repository Path**: mirrors_soldair/node-blocked ## Basic Information - **Project Name**: node-blocked - **Description**: Check if the event loop is blocked - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # blocked Check if a node event loop is blocked. ## Installation ``` $ npm install blocked ``` ## Example The `blocked()` function reports every value over 10ms, do whatever you want with that value, graph it, log it, alert, etc. The process won't be kept open through this! ```js var blocked = require('blocked'); setInterval(function(){ Array(10000000).join('a') }, 500); setInterval(function(){ Array(100000000).join('a') }, 3000); blocked(function(ms){ console.log('BLOCKED FOR %sms', ms | 0); }); ``` # License MIT