Skip to content

Commit 83c622e

Browse files
committed
docs: correct OnStatusChange comment — listener stays registered until Disconnect()
1 parent 92e9fcd commit 83c622e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/server-sdk/src/data_components/big_segments/big_segment_store_wrapper.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class BigSegmentStoreWrapper
9393

9494
/**
9595
* @brief Registers a listener invoked whenever the store status changes
96-
* (not on every poll). The returned connection unregisters on destruction.
96+
* (not on every poll). Call Disconnect() on the returned connection to
97+
* stop receiving events.
9798
*/
9899
std::unique_ptr<IConnection> OnStatusChange(
99100
std::function<void(BigSegmentStoreStatus)> handler);

0 commit comments

Comments
 (0)