Perform async work synchronously in Node.js using `worker_threads` with first-class TypeScript and Yarn P'n'P support.
Home Page:https://npm.im/synckit
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
JounQin opened this issue 10 months ago · comments
const syncFn = createSyncFn(workerPath, { globals: true, // or `{ performance: 'performance' }` for example })