If the Phoenix constructor throws during initialization, but after the lifecycle manager is created, then the tear_down method may not work correctly. It should only tear down resources which have been initialized.
One way to solve this is by putting initialized resources in a teardown stack.
If the Phoenix constructor throws during initialization, but after the lifecycle manager is created, then the
tear_downmethod may not work correctly. It should only tear down resources which have been initialized.One way to solve this is by putting initialized resources in a teardown stack.