I suspect this didn't actually follow the Singleto...
# announcements
j
I suspect this didn't actually follow the Singleton pattern 100% due to nulling it out - but clearInstance() was more of a way to get rid of the instance entirely, ensuring that a reinitialized fresh instance would be provided next time getInstance() was called
c
morris86: What’s your usecase for needing a new instance? Seems like that very much isn’t a singleton.
j
indeed, that's why I said I guess it's not exactly a Singleton, because there can be a different instance of it throughout the application's lifecycle.. but there can only ever be one at a time
c
What’s the usecase?
j
a request queue of sorts. normally I'd use dagger for this sort of thing, but this is not purely my application. I'm just looking to re-write parts of it in Kotlin for my own learning purposes