cplusplus / sender-receiver

Issues list for P2300
Apache License 2.0
20 stars 4 forks source link

Update `connect-awaitable` specification to use the receiver's allocator to allocate the coroutine-frame #268

Open lewissbaker opened 4 months ago

lewissbaker commented 4 months ago

The exposition-only connect-awaitable function implicitly allocates a coroutine-frame for a coroutine to co_await the awaitable.

However, there is currently no way to customise this allocation to use a user-provided allocator.

We should extend the connect-awaitable-promise type use a custom operator new() that dispatches to allocate using the allocator obtained from get_allocator(get_env(rcvr)).

lewissbaker commented 2 months ago

Discussed in a sync meeting - people are generally supportive of this change. It just needs someone to write the paper.