deasync
deasync copied to clipboard
Not working for me on Linux Debian
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.
#34 Try and read my posts from issue #34. This can happen when you deasync from a callback of some node packages like mongoose, request etc....
Hi, I am getting the same error. I have also applied the solution mentioned in #34 . But still it doesn't work for me. My code goes like this:
var done = false;
MyModel.find({id:id}).exec(function(err,data){
if(err){
console.log('error in finding data');
}
else{
console.log(data);
}
done = true;
});
while(!done){
deasync.runLoopOnce();
}
And the error is
node: ../deps/uv/src/unix/async.c:136: uv__async_io: Assertion `n == sizeof(val)' failed.
The OS is Ubuntu 14.04.2.