01 - Exploring Async.js - async.parallel

preview_player
Показать описание


FOLLOW US:
Don't forget to subscribe! Really appreciate it!

Рекомендации по теме
Комментарии
Автор

Years later and this is probably the best series on YouTube explaing async.js. Thanks

uwemneku
Автор

I cant believe it is that simple and when I went over one of the tutorials online I got so confused.

"If you can't explain it simply, you don't understand it well enough." Albert Einstein

mymusicana
Автор

awesome very nice and clear explanation.

nirmesh
Автор

Greatly thankful to you Youngzhi Huang. You seem much more human to me. Thanks I sometimes feel I am completely stupid if I dont get something wrong in my code.

sohanagate
Автор

Nice demo. Thank you!.. almost sounds like the ocean in the background :)

evatrium
Автор

Very nice video, thank you for sharing this.

Ethorbit
Автор

Nice video. Room for improvement, but very helpful.

leopoldroitel
Автор

What screen recorder do you use to record your screen?

agcoder
Автор

How is this Parallel ??? If I used

var async = require('async');

var stack = {};
stack.sayHi = function (callback) {
for(var i=0; i<50; i++) {
console.log('in sayHi '+i);
}
callback(null, 'function 1st');
};

stack.sayHelo = function (callback) {
console.log('in sayHelo');
callback(null, 'function 2nd');
};

stack.sayBye = function (callback) {
console.log('in sayBye');
callback(null, 'function 3rd');
};

async.parallel(stack, function (err, result) {
if(err) {
console.log(err);
return;
}
console.log(result);
});


I thought
for(var i=0; i<50; i++) {
console.log('in sayHi '+i);
}

Will run for first 20 or 25 times and then sayHelo and sayBye and remaining 25 sayHi will complete.

nutandevjoshi
Автор

Hi my name is Marco.
I use mysql and I have the parameters in different arrays, and my question is
what is the right async collection to use in this case?
(all the arrays have the same length)

for (let i = 0; i < cbo.length; i++) {
let upd = "insert into table (id, id_detail, score, note) values (?, ?, ?, ?)"
con.query(upd, [idcliente, detail[i], score[i], nore[i]], (err, rows) => {
callback(err, rows);
}

May you help me? Thanks

marcozambello
Автор

Hi. Great video. Can I just ask...

What are the benefits of using the NPM Async module vs just using plain NodeJS? I mean, is it not fair to say that NodeJS is capable of doing asynchronous code (complete with promises and everything) WITHOUT having to call upon an external NPM Module?


Thanks

davidconnelly
Автор

Nice tutorial, Thanks... by the way there's another error in Console.err(err);

alielb
Автор

Hey Pantacode, I might need your help. Since I'm developing my own Discord bot, how do I make it sync if a variable (for example, the "game" he's playing) changes? Normally, it doesn't update. How do I force it to do so?

malibogic
Автор

What?
What's the difference of this to series?

ronnelocampo
welcome to shbcf.ru