-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Refine listen and serve op #10080
Refine listen and serve op #10080
Conversation
sleep(5); | ||
// Write to a file of server selected port for python use. | ||
SavePort(rpc_service_); | ||
RunSyncUpdate(&executor, program, &recv_scope, prefetch_block); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rename RunSyncUpdate
to RunSyncLoop
, for:
- server side program may not always be "updates" and,
- this function is an event loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Separate RunSyncLoop to a method, prepare for RunAsyncLoop.
tasks: #9941