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

Cyclic JS-managed data #7

Open
asajeffrey opened this issue Aug 31, 2017 · 1 comment
Open

Cyclic JS-managed data #7

asajeffrey opened this issue Aug 31, 2017 · 1 comment

Comments

@asajeffrey
Copy link
Owner

Provide an API for creating cycles, something like:

    let foo = cx.manage_cyclic(|foo| AStructWithASelfReference { me: foo })
@asajeffrey
Copy link
Owner Author

Or something like:

let cx = cx.cyclic_init();
let foo = cx.initializing();
cx.cyclic_manage(AStructWithASelfReference { me: foo });

which is essentially what the global initializer does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant