Skip to content

recursion, inline completion, and stack usage #135

Open
@ericniebler

Description

@ericniebler

Issue by ericniebler
Wednesday Oct 06, 2021 at 17:11 GMT
Originally opened as NVIDIA/stdexec#212


@lewissbaker writes about as_awaitable:

I am still a little concerned about the potential for unbounded recursion and stack-overflow if someone awaits a sender that completes synchronously in a loop with this formulation.

Maybe this should conditionally schedule itself onto a trampoline_scheduler if the operation may potentially complete synchronously (e.g. if the get_blocking() CPO from P2257 was adopted and calling it returned something other than asynchronous_completion_t).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0discussionWe need to talk about this; there's nothing actionable here yetenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions