Feature Request: Allow instances to be reused, but also garbage collected #1378
Labels
core
status:checking
currently in analysis - discussion or need more detailed specs
type:feature-proposal
Milestone
It's great that we have some flexibility between
factory
andsingleton
!At the same time, we have many classes that could be reused if they already exist, without a strong need to only have one single instance.
singleton
, we find ourselves wasting memory by retaining such classes far beyond when we need themfactory
, we find ourselves wasting memory by creating too many simultaneous instances of classes that could have be sharedIt would be great if we could tell Koin to
This is similar to Dagger's
@Reusable
scope.The text was updated successfully, but these errors were encountered: