luckybilly / CC

业界首个支持渐进式组件化改造的Android组件化开源框架,支持跨进程调用。Componentize your android project gradually.
https://luckybilly.github.io/CC-website/
Apache License 2.0
4.05k stars 635 forks source link

跨app,异步调用不设置回调,如何取消 #86

Closed zhaolijunstar closed 5 years ago

zhaolijunstar commented 5 years ago

image 如果是异步调用且未设置回调,callbackNecessary一直是false,if (!cc.isFinished() && callbackNecessary)这个判断永远进入不了,如何去掉本次调用?

Ccixyj commented 5 years ago

设置超时或用callid来取消

luckybilly commented 5 years ago

@zhaolijunstar 截图中的代码是1.x.x版本的,异步未设置回调的CC调用将不能取消 在2.0.0及以上的版本中可以通过CC.cancel(callId)来取消