Uh oh!
There was an error while loading. Please reload this page.
feat(pubsub): add stop method - #9365
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
IlyaFaer
commented
Oct 25, 2019
No problem, pushed |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
IlyaFaer
commented
Nov 7, 2019
@pradn, thanks for leading me through |
There was a problem hiding this comment.
Looks good, including the locking (the code is also easier to reason about with the _batch_lock spanning across the entire bodies of the publish/stop methods).
Suggested two small improvements, if it's not too late (had to prioritize other stuff, apologies).
Edit: To clarify, this PR can be merged as-is if it's blocking other @pradn's work, and the suggested changes, if accepted, can be added separately.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kamalaboulhosn
commented
Nov 7, 2019
Works for me, thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Peter Lamut <plamut@users.noreply.github.com>
plamut
left a comment
There was a problem hiding this comment.
Looks good, thanks for the quick changes!
Add
stop()method, which sends all outstanding messages and waits until all futures resolved. Similar features in Go and Java.Closes#4913
Closes#6883