1 Question: Is there a better way to make a wait command? Cause importing time and then sleep seems to cause my hold script to sleep rather than just one line

question created at Sat, Jun 1, 2019 12:00 AM

importing time and then sleep seems to cause all of my scripts to sleep rather than just the one line. I was asking if there was a better way to call a wait. A new import entirely would also work.

-1
  1. Please read stackoverflow.com/help/how-to-ask and edit your question
    2019-06-01 07:20:31Z
1 Answers 1

I can’t get your question clearly but in nodejs and angularjs , not to wait for all scripts to execute or sleep all scripts. Which scripts you want to wait for results then those are added to promise. Nodejs and angularjs are synchronous,so to make asynchronous, we use await-promise.It holds only those scripts which return results waiting for other scripts to process.

0
2019-06-03 05:32:59Z
source placed here