GitShow/sindresorhus/make-asynchronous
sindresorhus

make-asynchronous

Make a synchronous function asynchronous by running it in a worker

by sindresorhus
Star on GitHubForknpm

JavaScript

255 stars7 forks3 contributorsActive · 3w agoSince 2022MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus14 contributions
Richienb
Richienb2 contributions
TimDaub
TimDaub1 contribution

Recent fixes

View closed PRs →
achingbrain
fix: update p-event to v7MergedPR

Bumps the version to for smaller bundle sizes when deps depend on different version of .

achingbrain · 3w ago
TimDaub
error because web-worker isn't shipped as esm moduleClosedIssue

I import make-asynchronous on node 18.20. I import it in a .mjs file: but it immediately throws So I try to set type: module in my package.json but it isn't solving it. However, when I go into node_modules/web-worker/package.json, and set it there, the problem is fixed. Wasn't sure where to create the issue, maybe it's a web-worker issue related issues at web-worker: https://github.com/developit/web-worker/issues/44 users of make-asynchronous can work-around this issue by defining in their dependencies

TimDaub · 4mo ago
TimDaub
Pin web-worker@1.2.0MergedPR

Fixes #6

TimDaub · 1y ago
Structured data for AI agents

Repository: sindresorhus/make-asynchronous. Description: Make a synchronous function asynchronous by running it in a worker Stars: 255, Forks: 7. Primary language: JavaScript. License: MIT. Open PRs: 0, open issues: 0. Last activity: 3w ago. Top contributors: sindresorhus, Richienb, TimDaub.

·@ofershap

Replace github.com with gitshow.dev