unblock-event-loop
v0.1.0
Published
Unblock event loop with setImmediate
Downloads
4
Maintainers
Readme
unblock-event-loop
Unblock event loop with setImmediate
Usage
import {unblock} from 'unblock-event-loop';
const tasks = Array(1e3).fill().map(async () => {
await unblock();
// some code blocking the event loop
});