Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weak #2

Open
Tamschi opened this issue Oct 13, 2021 · 0 comments
Open

Weak #2

Tamschi opened this issue Oct 13, 2021 · 0 comments
Labels
domain: Rust Involves Rust code. priority: someday If you need this, please let me know! type: feature Brand new functionality, features, pages, workflows, endpoints, etc. work: emergent The goal isn't known, but a plan exists.

Comments

@Tamschi
Copy link
Owner

Tamschi commented Oct 13, 2021

Is your feature request related to a problem? Please describe.

The crate API can be extended to also support weak references, with an additional (double) counter that implements Sealed.
This will have to override most of the default implementations to also support weak counts. The decrement API may have to be expanded a bit.

Describe the solution you'd like

Mostly covered above, otherwise emergent.

Describe alternatives you've considered

None.

Additional context

This could be tricky. It's likely best to look at the standard library's implementation a lot.

@Tamschi Tamschi added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. priority: someday If you need this, please let me know! work: emergent The goal isn't known, but a plan exists. domain: Rust Involves Rust code. labels Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: Rust Involves Rust code. priority: someday If you need this, please let me know! type: feature Brand new functionality, features, pages, workflows, endpoints, etc. work: emergent The goal isn't known, but a plan exists.
Projects
None yet
Development

No branches or pull requests

1 participant