Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #20

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deep_into_µcoro.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ucoro::awaitable<void> A() {

```

如果在 函数C里下个断电进行调试,则在调试器里看到的调用栈,绝对不会是 A -> B -> C,而是 某个内部代码 -> C。
如果在 函数C里下个断点进行调试,则在调试器里看到的调用栈,绝对不会是 A -> B -> C,而是 某个内部代码 -> C。
进一步,进行单步调试的时候会发现, C 函数里执行 co_return , 并不会直接返回B, 而是会回到某个内部代码,然后又重新进入B。栈上的调用链条变成某个内部代码 -> B。

也就是说,在无栈协程里,如果从传统的栈上调用链看, 所有的协程函数都是“平级”的。都是被某种魔法代码平级调用。
Expand Down