This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Tentatively Ready status.
await_transform needs to use as_awaitableSection: 33.13.6.5 [task.promise] Status: Tentatively Ready Submitter: Dietmar Kühl Opened: 2026-02-21 Last modified: 2026-02-27
Priority: Not Prioritized
View other active issues in [task.promise].
View all other issues in [task.promise].
View all issues with Tentatively Ready status.
Discussion:
In the await_transform overload for change_coroutine_scheduler the return statement repeats the function name instead of using as_awaitable. The return statement needs to be fixed. The change may be editorial.
Note that P3941 recommends removing change_coroutine_scheduler and the corresponding overload of await_transform entirely.
[2026-02-27; Reflector poll.]
Set status to Tentatively Ready after 7 votes in favour during reflector poll.
Proposed resolution:
This wording is relative to N5032.
Change 33.13.6.5 [task.promise] p10 to use as_awaitable in the Effects clause:
template<class Sch> auto await_transform(change_coroutine_scheduler<Sch> sch) noexcept;-10- Effects: Equivalent to:
returnawait_transformas_awaitable(just(exchange(SCHED(*this), scheduler_type(sch.scheduler))), *this);