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

Does koin support component lifecycle management? #1861

Open
kobe2000 opened this issue Apr 22, 2024 · 1 comment
Open

Does koin support component lifecycle management? #1861

kobe2000 opened this issue Apr 22, 2024 · 1 comment
Labels
question Usage question

Comments

@kobe2000
Copy link

Like PostDestroy annotation in Spring Framework.

@arnaudgiuliani arnaudgiuliani added the question Usage question label May 16, 2024
@arnaudgiuliani
Copy link
Member

Yes, seems not documented. Bu you can do something:

single { ComponentA() } onClose {
                        //.. instance is closed
                    }

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

No branches or pull requests

2 participants