inplace_stop_token::request_stop() returns an inverted value
Opened this issue · 0 comments
lewissbaker commented
The specification for a stop-source requires that the request_stop()
method returns true
if a stop-request was made and false
if a stop-request could not be made (e.g. because a stop-request had already been made).
However, the current implementation of stdexec::inplace_stop_source::request_stop()
as the result inverted.
It returns false
if a stop-request was made and true
if a stop-request was not made.
See:
stdexec/include/stdexec/stop_token.hpp
Lines 248 to 275 in 519f931