Skip to content

Consider switching Arc<Unpark> to an opaque type #432

@carllerche

Description

@carllerche

This issue is mostly a placeholder for a discussion leading up to 0.2.

Currently, Arc is used to pass around the unpark handle. This API has a hard requirement on Arc which means that an allocation is required even if it isn't strictly necessary.

I propose switching that to an opaque struct, something like UnparkHandle which would allow the internal representation to change in the future.

There could be a conversion from Arc as I think we would need to maintain that indefinetly.

Relates to #430

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions