Closed azl397985856 closed 4 years ago
我们如何判断一个方法是同步的还是异步的,是否只要有回调函数就是异步?
比如react setState是同步还是异步,setTimeout是同步还是异步,console.log呢? 你自己怎么写一个异步的方法?
ps: 上面的很多都是伪问题, 你能看出来我问的有问题么?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
我们如何判断一个方法是同步的还是异步的,是否只要有回调函数就是异步?
比如react setState是同步还是异步,setTimeout是同步还是异步,console.log呢? 你自己怎么写一个异步的方法?
ps: 上面的很多都是伪问题, 你能看出来我问的有问题么?