Update design_notes.md

This commit is contained in:
John Graley 2024-02-14 18:18:46 +00:00 committed by GitHub
parent 50360d466a
commit cc650a83b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
## Design Notes ## Design Notes
- A "corouine" is officially a class or factory object bound to a coro body. - A "coroutine" is officially a class or factory object bound to a coro body.
It creates an RAII object, so an instance must be created and should be in It creates an RAII object, so an instance must be created and should be in
a local scope (i.e. of the test case). Coroutines are implemented as lambdas a local scope (i.e. of the test case). Coroutines are implemented as lambdas
because a lambda can be a C++20 coroutine, and we can capture the mock objects. because a lambda can be a C++20 coroutine, and we can capture the mock objects.