You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
classContext
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.
The text was updated successfully, but these errors were encountered: