-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问JS调用原生方法后,可以多次callBack回调给JS吗? #33
Comments
Emmmmm... 为什么会有这种需求呢? |
|
比如两个回调的状态不一样,可能第一次回调是complate的状态,第二次回调是success的状态 |
我理解你的需求类似于一个 stream 的形式,你需要 subscribe 另一方的执行状态,本质上是一个观察者模式? |
|
差不多是这个意思,可以像你说的这样。就是看有没有更好的方案,想利用这个callBack这个回调不知道行不行?删除那一行,会有问题吗? |
会导致存放回调的数据结构积累越来越多的回调 block。 |
请问JS调用原生方法后,可以多次callBack回调给JS吗?
The text was updated successfully, but these errors were encountered: