Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 26758
Total Votes: 241 votes
Average Rating: 3.53 out of 5
Category: Java Script/Misc
Description:Asynchronous method generally has some callback like success, error or complete.There are many situation while coding in java script where we need to call a block of code after an asynchronous method finished execution.This is where we see the problem as:-
--Browser does not wait for asynchronous method to complete and start executing the next line.
--If We will write the block of code after success method then it create a messy code base to manage.