Open Tishka17 opened 4 months ago
it's a dangerous call because there could be created objects which rely on the one we are trying to invaldate. Also, it's not clear whether we need to call finalizer or not (probably we can just add a parameter)
a) close must clean all except context data so the container will be reused b) APP-container can be recreated from RUNTIME one
Since version 1.2 you can call close
to cleanup all dependencies and continue using same container
container.invalidate(Pool)
to remove an object from cache so it can be recreated