Open RobertLeahy opened 4 years ago
The reason is because the way execute
in the executor_of
concept is specified, the callable should be invoked as an lvalue. I don't know why, that decision precedes my time with the Executors project. I agree it makes sense to change it to an rvalue, but the two places need to be consistent.
Given that:
set_value
(when it succeeds) is "terminal" andas-receiver::set_error
and::set_done
don't make use ofas-receiver::f_
It's not clear to me why
as-receiver::set_value
shouldn't be changed from:to
Given the conversation in #5 one could also make an argument that this function be rvalue ref qualified.