Replies: 1 comment
-
Your best bet is to store a set of ids in a static variable (you can use dashmap/RwLock in a std::sync::LazyLock to achieve this). You can use a Drop trait impl to remove people from this static variable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let’s say I have a class called Person and it implements UserData trait, How can I track all available Persons assuming that lua code is still running and creates lots of Persons and they are strong references which are still in memory and not garbage collected
Beta Was this translation helpful? Give feedback.
All reactions