Skip to content

BG180 17.12.05 Fix example using await_suspend #178

@wg21bot

Description

@wg21bot

(BG-local 4)

(Related to BG2) The code example uses the void-returning variant of await_suspend().

Proposed change:
Change suspend_never::await_suspend() to return its argument and change suspend_always::await_suspend() to return nullptr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EWGEvolutioncoroutinesCoroutinesrejectedNo consensus for a change.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions