chriskohlhoff / asio-tr2

C++ TR2 proposal based on Asio
17 stars 5 forks source link

Unclear lifetimes of executor work guards #202

Open jwakely opened 9 years ago

jwakely commented 9 years ago

There seems to be no difference between the lifetime of work1 and work2 as described by [async.reqmts.async.work]

[async.reqmts.async.concepts] suggests that "until the asynchronous operation has completed" and _"until the asynchronous operation has completed and completion_handler has been submitted for execution"_ mean the same thing, because it has completed once the handler has been submitted for execution.

chriskohlhoff commented 9 years ago

Changed the wording to make it clearer that the lifetime is the same in 9e0d0ac99a2043812ddd816d6deed875bb43402e.