You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The evolution of samples from the first one(02.10) to the result is awesome and produces the expected results.
However, what if one would use it from the perspective to write something more generic:
For example the data for "sending coroutine" could be just:
and the code in "parsing coroutine" is co-awaiting and just co-yielding (echoing):
while (true) {
byte b = co_await byte{};
std::string frame{};
frame.push_back(static_cast<char>(b));
co_yield frame;
}
And in this sense the modified (02.10) keeps working as expected, but already the next one doesn't (is crashed).
Of course, things were done with an eye to a specific version of the protocol, the outcomes in common seem not functionally equivalent. And I thought that the issues could be interesting.
The text was updated successfully, but these errors were encountered:
Thanks for the coroutine set.
The evolution of samples from the first one(02.10) to the result is awesome and produces the expected results.
However, what if one would use it from the perspective to write something more generic:
For example the data for "sending coroutine" could be just:
and the code in "parsing coroutine" is co-awaiting and just co-yielding (echoing):
And in this sense the modified (02.10) keeps working as expected, but already the next one doesn't (is crashed).
Of course, things were done with an eye to a specific version of the protocol, the outcomes in common seem not functionally equivalent. And I thought that the issues could be interesting.
The text was updated successfully, but these errors were encountered: