alibaba / coobjc

coobjc provides coroutine support for Objective-C and Swift. We added await method、generator and actor model like C#、Javascript and Kotlin. For convenience, we added coroutine categories for some Foundation and UIKit API in cokit framework like NSFileManager, JSON, NSData, UIImage etc. We also add tuple support in coobjc.
https://github.com/alibaba/coobjc
Apache License 2.0
4.03k stars 525 forks source link

不改代码将IO变异步的问题 #102

Open jefffyangdis opened 4 years ago

jefffyangdis commented 4 years ago

在微信公众号 淘宝技术 的coobjc宣传文章中提到 "淘宝app 在不改变原有业务代码的基础上,通过全局hook部分IO、数据解析方法,即可让原来在主线程中同步执行的IO方法异步执行,并且不影响原有的业务逻辑" 这个能稍微细说下怎样完全不动业务代码就能将同步逻辑改造成异步逻辑吗?