Hi All,
The asn1 module which is heavily depended on has received little attention
over the past few years, so I have cloned the project and made a commitment
to address all outstanding issues and pull requests, and maintain it going
forward as a drop in replacement for asn1, i.e. where you wou
The problem is that your last console.log line runs before anything else.
I don't see the rest of the code, but I suspect if you move your *return
resolve(countRepetidos);* 2 lines up (right behind that *if(data.count>0)
{}* block), your promise will resolve proper value.
Likewise, if you put t
You have to put this line
console.log("count repetidos 2",countRepetidos);// value undefined
before the return function
return resolve(countRepetidos);
var countRepetidos;if(obj.data.list!={} && obj.data.list.length>0){
var aux = obj.data["list"];
countRepetidos=0;
for(var i=0;i
Hi,
I'm trying to record an audio stream to a local file, so readable to
writable stream, no problem. However if the audio source dies i want to
keep the file (ws) from closing it can simply append data to the existing
file.
Everything i've tried (new readable, request, fetch, fluent-ffmpeg)
Hi,
to mentions for you problem. Do it like this:
let countRepetidos = 0;
const count = (data) => {
if(data.count>0){
countRepetidos++;
console.log("count repetidos 1",countRepetidos); // value 116
}
};
Promise.all(aux.map((val) =>
Database.Probing.getMacAdress(val).then(