node-addon-examples icon indicating copy to clipboard operation
node-addon-examples copied to clipboard

why async_work example was removed?

Open rndmania opened this issue 10 years ago • 3 comments

why async_work example was removed?

rndmania avatar Feb 23 '15 04:02 rndmania

It dosen't work with v0.12.0 or io.js. I can't find any working example of async addon for v0.12.0 or above, _except using NAN_.

beeven avatar Mar 03 '15 07:03 beeven

I also have issues with async under Node 0.12. Tried to rewrite it under new Node, I am getting segmentation faults. It would be great to have a working example...

lobodpav avatar Mar 15 '15 04:03 lobodpav

if you are looking for a NANs implementation, check out this test case:

https://github.com/nodejs/nan/blob/master/test/cpp/asyncworker.cpp https://github.com/nodejs/nan/blob/master/test/js/asyncworker-test.js

there is also async worker with progress callback, both worked great for me.

winfinit avatar Aug 07 '15 02:08 winfinit