Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
rwjblue left a comment
This is really great, thank you for working on it!
I think we may need a couple additional things to allow for introspection:
IMHO, these are somewhat important so that we can "mark" all of the graph that will be destroyed before calling all of the registered destructors and that the object itself can determine if it is in a destroying state or not before doing any work.
@pzuraq - Another feature that ember-lifeline has, that is pretty nice (and we would either have to drop there or not be able to migrate to this builtin API) is that we can assert that all destroyables that were ever registered have been ran. This is used in testing infrastructure (see the documentation here) to ensure that folks don't accidentally forget to properly