deasync icon indicating copy to clipboard operation
deasync copied to clipboard

Turns async function into sync via JavaScript wrapper of Node event loop

Results 67 deasync issues
Sort by recently updated
recently updated
newest added

When installing this package (`[email protected]`) using Yarn v2 on Mac OS X with Node.js 16.13.0 I get this error: > **This file contains the result of Yarn building a package...

when running the following code with `node file.js` it works, but when running the same code with `jest` it just runs continuously ``` console.log('===1==='); Promise.resolve().then((_data) => { console.log('===2==='); data =...

Hey there, I'm getting the following error trying to start my app: ``` /Users/tnrich/Sites/lims/app-proxy/node_modules/bindings/bindings.js:126 err = new Error( ^ Error: Could not locate the bindings file. Tried: → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/deasync.node →...

When using a deasynced function in asynchronous code, deasync hangs and never returns. ``` javascript var deasync = require('deasync'); function async(cb) { setTimeout(function() { cb(null, 'value'); }, 0); } function...

bug

Hi, **OS** macOS Monterey Version 12.3.1 Apple M1 chip [email protected] **Problem** I am trying to compile the binary of a script with pkg: `pkg my-api/main.js --out-path binaries` It works until...

I'm getting this error: ``` FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. 1: 0xb09980 node::Abort() [node] 2: 0xa1c235 node::FatalError(char const*, char const*) [node] 3: 0xcf758a v8::Utils::ReportApiFailure(char const*, char const*) [node] 4: 0xa8b12d...

Has sense to implement a sched_yield() at every cycle in loopWhile() for making the loop a "little less blocking"? Thank you

I've been building a CLI tool and have needed to make use an `async` library within synchronous functions. I've encountered an issue where `deasync` will lock up when the result...

Hi, based on code from #62 I tried to make sleep to run concurrently like this: ``` var deasync = require('deasync') setTimeout(function(){ deasync.sleep(250) console.log("deasync works! (1)"); }, 1) setTimeout(function(){ deasync.sleep(250)...

Running `npm install` on an project using deasync fails, when Node environment variable `NODE_EXTRA_CA_CERTS` is set: ```bash $ export NODE_EXTRA_CA_CERTS=my_ca_chain.crt $ npm install > [email protected] install C:\Users\michael.prankl\git\appswitcher-vue\node_modules\deasync > node ./build.js...