Adam Satria Gunadi

Aug 28, 2021 11:28
@T.J.Crowder "20 requests is very different from an infinite loop!"
20 is just limit of simultan request, it still infinite loop! Please check again my code.. I updated counter variable after completion callback..
Aug 28, 2021 10:29
@Quentin Okay, sorry maybe i don't know what it call exactly. I just want to loop asynchronous process but not in single process.. like call function in repeat after completion callback..
Aug 28, 2021 10:29
@T.J.Crowder The point is speed, if looping using multi thread way it will met condition more fast. Because you call HTTP request more than 1 but together.. And then HTTP response time will be dynamic.. One of them will met condition first, and when that happen i will run next process..
Aug 28, 2021 10:29
I just want to loop API HTTP Request and get the data, but i don't want single thread loop method like call function again after callback complete.. i want multi thread method.. If one of asynchronous looping meet the condition then i will stop the loop.