Skip to content

Nested scopes with lifetime bounds #583

@joshtriplett

Description

@joshtriplett

I'd like to be able to ask a Scope object for a nested scope whose lifetime is bounded by the lifetime of the outer scope. That would allow a scoped thread to spawn a more narrowly scoped inner thread that can borrow from the outer-scoped thread.

This could look like a method scope on Scope that creates a new Scope with an appropriately bounded lifetime.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions