JSPM

unblock-event-loop

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q15067F
  • License MIT

Unblock event loop with setImmediate

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unblock-event-loop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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
    });