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

Make SplitAndDelay a singleton #69

Open
APRashedAhmed opened this issue Mar 12, 2018 · 0 comments
Open

Make SplitAndDelay a singleton #69

APRashedAhmed opened this issue Mar 12, 2018 · 0 comments

Comments

@APRashedAhmed
Copy link
Contributor

Expected Behavior

Calling the constructor class SplitAndDelay should just return the same instance every time after the first call.

Current Behavior

A new instance will be created from the ground up every time.

Possible Solution

Implement the singleton pattern for the SplitAndDelay class

Context

Since there is only one hard x-ray split and delay there will never need to be a reason to have multiple instances of the object. This would formalize this in the code.

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

No branches or pull requests

1 participant