开发者

How can i wait that a method or function finish to run its code?

开发者 https://www.devze.com 2023-03-09 23:01 出处:网络
I need to find a solution for wait for a method 开发者_StackOverflow社区or function finish to run its code. How can i do this?

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消