O
O
olezhenka2017-04-02 08:50:30
JavaScript
olezhenka, 2017-04-02 08:50:30

How to execute big script in node js loop?

why the cycle is instantly executed 200 times, and the script that is inside it does not touch at all?
37b5ff26e119498a92b61627aa9166db.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deodatuss, 2017-04-02
@Deodatuss

wrap the block that starts with play.findOrCreate in
(function(i){ ...ваш код... })(i)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question