-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Question] Is there any way to sync with results of async operations? #2455
Labels
Comments
The better description of high-level scenario. If consumer is not subscribed (or assigned) to anything, then subscribe it in sync way, make sure it's resumed, and make sure that next call to |
pause/resume..() are currently asynchronous, as you say, but it is probably a good idea to make them synchronous. |
edenhill
added a commit
that referenced
this issue
Aug 14, 2019
This makes sure that a consumer_poll() call after pause() will not return any messages.
edenhill
added a commit
that referenced
this issue
Aug 16, 2019
This makes sure that a consumer_poll() call after pause() will not return any messages.
edenhill
added a commit
that referenced
this issue
Aug 16, 2019
This makes sure that a consumer_poll() call after pause() will not return any messages.
7 tasks
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The operations of interest are:
The related calls to
rd_kafka_resume_partitions()
,rd_kafka_pause_partitions()
,rd_kafka_subscribe()
, etc. just put a task into some queue which is processed by another thread async. I can't find any high-level mechanism (like future-promise) to sync with a result of these operations, and can't figure out how to check if operation is completed within a couple lines of code.The basic scenario:
The text was updated successfully, but these errors were encountered: