Open
Description
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 thanasynchronous_completion_t
).