Rust: Tracking Issue for arc_new_cyclic

Created on 24 Aug 2020  路  1Comment  路  Source: rust-lang/rust

The feature gate for the issue is #![feature(arc_new_cyclic)].

Tracking the following API:

impl<T> Arc<T> {
    pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Arc<T>;
}

impl<T> Rc<T> {
    pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Rc<T>;
}

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

Implementation history

  • #72443
  • #75505
A-concurrency C-tracking-issue Libs-Tracked T-libs

Most helpful comment

@Dylan-DPC @KodrAus allow me a day to implement arc_new_cyclic on Rc :)

>All comments

@Dylan-DPC @KodrAus allow me a day to implement arc_new_cyclic on Rc :)

Was this page helpful?
0 / 5 - 0 ratings