1 min read

useWorker

Table of Contents

useWorker is a react hook that allows you to run expensive tasks in background without blocking the UI.

userworker

📋 Features

  • ✅ Run expensive function without blocking UI (Show live gif)
  • ✅ Supports Promises pattern instead of event-messages
  • ✅ Size: less than 3KB!
  • ✅ Clear API using hook
  • ✅ Typescript support
  • ✅ Garbage collector web worker instance
  • ✅ Remote dependencies option
  • ✅ timeout option

💻 Repo

https://github.com/alewin/useWorker

🏛️ License

MIT