Skip to content

Commit e12141a

Browse files
committed
Fix missing passing of stop_token in documentation
1 parent afed0ff commit e12141a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct consumer_t {
115115
thread([&](std::stop_token token) {
116116
auto buffer = concurrent::unbounded_queue<int>::container_type();
117117
while (!token.stop_requested()) {
118-
buffer = queue.pop_all(std::move(buffer));
118+
buffer = queue.pop_all(token, std::move(buffer));
119119
for (int const value : buffer) {
120120
std::cout << value << ' ';
121121
}

0 commit comments

Comments
 (0)