deasync
deasync copied to clipboard
Turns async function into sync via JavaScript wrapper of Node event loop
deasync stopped working in node 7.5.0 REPL: ``` wget=require('deasync')(require('node-fetch')) console.log(wget("http://google.com")) ``` TypeError: Generator is already running works fine otherwise
Hi there, I was trying to execute this piece of code: ``` const net = require('net'); const deasync = require('deasync'); var reachable = false; var cont = 0; var retries...
Sometimes it working, sometimes not. This is the messaage I got: ``` node: ../deps/uv/src/unix/async.c:136: uv__async_io: Assertion `n == sizeof(val)' failed. ```
I am trying to utilise deasync under Electron. The package works perfectly fine under OSX and works fine under NodeJS on Windows, but when attempting to load the module under...
Im trying to batch scale / process photos and do other manipulations on many images (and other files) in a dir tree. No need to do asynchronously and deasync would...
Heads up that I'm having trouble building on my OS X machine. ``` child_process: customFds option is deprecated, use stdio instead. CXX(target) Release/obj.target/deasync/src/deasync.o ../src/deasync.cc:5:1: error: unknown type name 'uv_idle_t' uv_idle_t...
Hi Abbr, i have the following code which run with Node.js (v4.2.2)+ Express.js(v~4.13.1). ``` var request = require('request'); var deasync = require('deasync'); request = request.defaults({jar: true}); function doSomething() { var...
By using the "lab" to perform unit testing and "node-etcd" (using "deadsync"), the application dies in testings. Searching in the code, I found that the error occurs in the file...
function SyncFunction(){ var ret; setTimeout(function(){ ret = "hello"; },3000); // may be promise.then(res=>ret=res) while(ret === undefined) { require('deasync').sleep(100); } // returns hello with sleep; undefined without return ret; } //...
### Description I am trying to use the deasync package in my project, but I am getting the following error: Error: Could not locate the bindings file. Tried: → .../node_modules/deasync/build/deasync.node...