Skip to content

Conversation

@anurosan
Copy link
Owner

@anurosan anurosan commented Aug 15, 2021

In the past, any attempt to use this class would result in all the data sources being instantiated. I used the Singleton pattern to combine the csbs, jhu, and nyt classes into one class so that only one instantiation of a data class exists at any time.

@anurosan anurosan changed the title Making it so that only one data source is instantiated at a time. Using the Singleton Pattern to insure that only one data source is instantiated at a time. Aug 16, 2021
@anurosan anurosan merged commit 3fb44e2 into singleton-pattern Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants