Skip to content

Using the Singleton Pattern to insure that only one data source is instantiated at a time#2

Open
anurosan wants to merge 16 commits intomasterfrom
singleton-pattern
Open

Using the Singleton Pattern to insure that only one data source is instantiated at a time#2
anurosan wants to merge 16 commits intomasterfrom
singleton-pattern

Conversation

@anurosan
Copy link
Owner

In the past, any attempt to use the data 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.

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.

1 participant