Skip to content

IOAwaitable documentation is out of date: coroutine_handle -> continuation #296

Description

@rainerdeyke

According to the documentation at https://master.capy.cpp.al/capy/4.coroutines/4d.io-awaitable.html, I'm supposed to resume a suspended coroutine by passing the saved coroutine_handle to env_->executor.dispatch (although I think this should really be post since there is no trampoline in place and the return value of dispatch is ignored in the example code). Regardless, this doesn't work because dispatch and post now accept references to continuations instead of coroutine_handles. I have no idea where I should get these continuations and I'm guessing it's not safe to just construct my own, so now I'm stuck.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions