How can i wait that a method or function finish to run its code?
I need to find a solution for wait for a method 开发者_StackOverflow社区or function finish to run its code. How can i do this? Example : Method a, Method b. I have to run b when a is finished! Thanks.
a();
b(); // will run only after a() is finished
Or you run them asynchronously?
精彩评论