Skip to content

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

Open
@lewissbaker

Description

@lewissbaker

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)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0coroutinesIssues relating to coroutine support.designenhancementNew feature or requestneeds-paperNeeds a paper to be writtenprocessedprocessed in a meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions