Skip to content

疑问:整个流程和handler机制非常相似 #11

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

Open
madroidmaq opened this issue Aug 22, 2016 · 2 comments
Open

疑问:整个流程和handler机制非常相似 #11

madroidmaq opened this issue Aug 22, 2016 · 2 comments

Comments

@madroidmaq
Copy link

我觉得flux的事件流和handler的机制非常相似,如action和handler的message很相似,dispatcher的功能类似于handler的sendMessage,而store的功能可以用handleMessage和eventbus结合实现。以上只是我个人的理解,不知道这样理解的对不对,还请大神解疑,感谢

@jinksw
Copy link

jinksw commented Aug 23, 2016

我觉得你的理解是对的.利用Handler确实可以部分实现flux的单数据流流程.
但是handle并没有提供文中说到的 A依赖B A需要在B之后才得到通知的逻辑.
sendMessageDelay好像可以勉强实现这个功能,但是有点牵强.

@lufengdie
Copy link

才接触,待了解。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants