Skip to content
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

kotlin的协程 #1

Closed
jimichan opened this issue Mar 3, 2019 · 1 comment
Closed

kotlin的协程 #1

jimichan opened this issue Mar 3, 2019 · 1 comment

Comments

@jimichan
Copy link

jimichan commented Mar 3, 2019

kotlin从编译器和lib层面实现了协程,你可以在协程基础上分装

@allon2
Copy link
Owner

allon2 commented Mar 6, 2019

目前实现协程的方式不少,有kilim,scala,kotlin,spring reactor,kotlin,go等多种方式,协程是这个的基础,后期主要是想实现责任链,父子关系调用等多种复杂关系,将公共部分抽取为单独组件,方便代码的复用。考虑过使用注解方式,不过发现类似这个里面的Step的方式,用注解的方式很难实现,也无法实现代码复用。在高并发、高性能的前提先,尽量降低学习成本,也是这个的目标。kotlin这个没细看过。如果也能实现这个目标更好。其实原来的调度用的是quene模式,后来发现ringbuffer更高效,才换这个的。如何让kotlin兼容spring没仔细研究过。为了实现可视化,在step中还保留了xpoint和ypoint,方便后续可视化界面的开发。

@allon2 allon2 closed this as completed Mar 11, 2019
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

2 participants