-
Notifications
You must be signed in to change notification settings - Fork 430
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
如何 自定义携程任务 #62
Labels
Comments
@zhaocy 可以把消息转发给自定义的携程处理,只需要对应的服务实现 Scheduler 接口就可以了。 |
简单来说就是注册 service 的时候为这个 service 指定一个 scheduler name (https://github.com/lonng/nano/blob/master/component/options.go#L50),然后讲这个 scheduler 绑定要 session。
然后对应服务的消息就会让这个 scheduler 调度,而不是全家调度。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lonng 消息默认转发给全局携程处理,如何根据业务请求自定义携程。有没有示例
The text was updated successfully, but these errors were encountered: