Skip to content

Instantly share code, notes, and snippets.

View RedstoneWizard22's full-sized avatar
🏳️‍⚧️

Lilian RedstoneWizard22

🏳️‍⚧️
View GitHub Profile
@RedstoneWizard22
RedstoneWizard22 / README.md
Last active June 5, 2024 12:45
Make web workers fun! A tiny library allowing you to use web workers via asynchronous proxy functions!

promise-worker.ts

Make web workers fun!

This tiny library allows you use web workers via asynchronous proxy functions! No more struggling with mesages and event handlers - all this is done automatically. Exposed worker functions return promises resolving with their results.

  • Full typescript support
  • Bundler independent
  • Perfect with async/await
  • Tiny size