mobi phil
2015-02-18 14:38:08 UTC
Hi,
Thanks for the great work.
The comment for async_write_some
/// Start an asynchronous write.
/**
* This function is used to asynchronously write data to the stream
socket.
* * The function call always returns immediately.*
This is true when the completion is a callback, but not when we have a
coroutine. From coroutine point of view, the function is not returning
immediately but after data is available, exactly which is the point to have
async with coroutine.
It was a bit misleading for me as I was first evaluating the infrastructure
with the given echo_server example.
Suggest that this difference should be mentioned in the doc.
rgrds,
mobi phil
Thanks for the great work.
The comment for async_write_some
/// Start an asynchronous write.
/**
* This function is used to asynchronously write data to the stream
socket.
* * The function call always returns immediately.*
This is true when the completion is a callback, but not when we have a
coroutine. From coroutine point of view, the function is not returning
immediately but after data is available, exactly which is the point to have
async with coroutine.
It was a bit misleading for me as I was first evaluating the infrastructure
with the given echo_server example.
Suggest that this difference should be mentioned in the doc.
rgrds,
mobi phil