Skip to content

Add arc::unwrap #3123

Closed
Closed
@bblum

Description

@bblum

Blocks until the reference count is 1, then consumes the arc and returns the data inside.

Useful for #3117 and, as @pcwalton claims, for css in servo.

Obvious potential for deadlock. I think this is ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions