J
J
JackShcherbakov2018-02-03 23:58:42
JavaScript
JackShcherbakov, 2018-02-03 23:58:42

How to provide asynchrony in es5?

Hello! How to provide asynchrony in es5? I need one function to execute only when the other one finishes executing. There should be a queue, just like setTimeout does.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2018-02-04
@Stalker_RED

Since promises appeared only in ES6, you will have to be content with callbacks , or be tied to some kind of events.

R
Roman, 2018-02-04
@r0n1x

Generators

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question