Answer the question
In order to leave comments, you need to log in
What is synchronous and asynchronous code?
What is synchronous and asynchronous code?
What are the concepts? What is the concept?
Answer the question
In order to leave comments, you need to log in
Synchronous hangs the entire process until it is executed, and only then transfers control further, to the lower code.
The asynchronous code pauses and passes control further, but the breakpoint is remembered and control is returned to it in the future under some condition. For example, a timer or an event. Thus, the process does not hang. Moreover, some variables that are needed to execute asynchronous code can be initialized below, but for now this code cannot be executed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question