Hi,
can we use JS callbacks/async calls with Dukglue? Is there some example (I was looking at tests but couldn't fine)
E.g. I would like C/CPP code to call this script (read and write functions are defined)
function f() {
write(addr, data , function (err) {
if (!err) {
read(addr, function (err, data) {
// do something
}
}
}
}
Thanks
Hi,
can we use JS callbacks/async calls with Dukglue? Is there some example (I was looking at
testsbut couldn't fine)E.g. I would like C/CPP code to call this script (
readandwritefunctions are defined)Thanks