for (const proxy of data) {
const kaynak = [];
const func = async () => {
let content = await arrow(proxy); //await ve then aynı anda kullanılmamalı. await zaten async fonksiyon çalışırken kodu bekletmeyi ve return'u değişkene atayabilmenizi sağlıyor.
return content
}
let asd = await func(); // func fonksiyonu async olduğu için await ile bekleyip değişkene atamanız gerekiyor.
console.log(asd) ;
}Aşağıdaki şekillerde de kullanılabilir.
const func = async () => {
return arrow(proxy);
}
func().then(data => { console.log(data); });