Asynchronous and Synchronous Terms

前端 未结 5 478
遇见更好的自我
遇见更好的自我 2020-12-08 00:49

I\'m confused by the term asynchronous when related to programming. It seems to mean the opposite in programming terms as what it is defined as in the dictionary.

5条回答
  •  时光说笑
    2020-12-08 01:20

    Synchronous Request: A request is called synchronous when it waits for the response of that particular request before executing the other one. i.e when a client makes a call synchronously then it blocks the client browser to ensure that client couldn’t make another call before getting the server response for that previous call.

    Asynchronous Request: An asynchronous call works independently i.e it doesn’t wait for the server response before executing another call or request. so u can simply make different calls at the same time without waiting for the server response.

提交回复
热议问题