async callback not calling properly
See original GitHub issueI’m using google map places api to search for places and then insert that places into mongodb using nodejs. For every hit on google map api, it will give 60 results which is splitted into 3 pages. So first time i will only get 20 results. I also want to get another 40 results from that api. To get all this 60 results i’m using async.each
, but i’m just getting first 20 results and then no response from nodejs. How do i insert all the 60 results into mongodb? Please help me. Reply as soon as possible.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18
Top Results From Across the Web
c# - Async callback is called but not executed sometimes
In my View code behind, I call a method in the View Model to get value. However the async callback is not called....
Read more >How to Handle Async Callbacks in JavaScript...Without ...
I want to return that, but how can I? We can't return something from an asynchronous function call!" That's a great question.
Read more >Node.js Async Best Practices & Avoiding the Callback Hell
This post covers what tools and techniques you have at your disposal when handling Node.js asynchronous operations. Learn how to avoid the ...
Read more >Callback Functions | Async-Await | Promises - Enlear Academy
Usually, JavaScript codes run synchronously and synchronous operations wait for the previous operations to be completed no matter how much longer it takes....
Read more >How to use promises - Learn web development | MDN
In the last article, we talked about the use of callbacks to implement asynchronous functions. With that design, you call the asynchronous ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
He’s giving your pseudo-code, not the exact solution. You’ll have to handle the next page token for it to work.
Anyway, closing this since it doesn’t appear to be an issue with Async.
I fixed my problem without using async. Anyway thanks for your time @ex1st
I love
async
.