Closed vinniefalco closed 6 years ago
We can reduce the amount of code and guarantee the proper invariant by making pausation call asio::post when it resumes the operation. This will require passing the executor in the initial call to emplace, and correctly type-erasing it.
pausation
asio::post
executor
emplace
Actually this won't work because usually a composed operation acquires a read or write block before posting.
We can reduce the amount of code and guarantee the proper invariant by making
pausation
callasio::post
when it resumes the operation. This will require passing theexecutor
in the initial call toemplace
, and correctly type-erasing it.