async_simple icon indicating copy to clipboard operation
async_simple copied to clipboard

[docs] Update behavior for user-defined awaiter

Open ChuanqiXu9 opened this issue 2 years ago • 0 comments

Search before asking

  • [x] I searched the issues and found no similar issues.

What happened + What you expected to happen

When user defines an awaiter, if the awaiter didn't implement coAwait method, the ViaCoroutine helper will be invoked to switch the context. However, the behavior is not documented. So here is the confusion: https://github.com/alibaba/async_simple/discussions/162

  • [x] Yes I am willing to submit a PR!

ChuanqiXu9 avatar Sep 26 '22 01:09 ChuanqiXu9