1
Open Discussion / Re: DataSubscriber
« on: July 10, 2020, 10:05:33 AM »
Thanks for the response.
Just to make sure I'm understanding you, if I used the DataSubscriber2 and 2 of the fault conditions happened at the same time, they would both cause the DataChanged sub to run? There is nothing time consuming in that sub, so even a fraction of a second time difference should let the sub finish before needing to be run again, but let's think worst case scenario where 2 faults occur at the exact same moment and both want to trigger the DataChanged sub. Will they run in their own thread? Will they be queued to run one after another? Will the second trigger be ignored?
I like the idea of cleaning up the scores of subscribers I currently have, but I want to make sure nothing is missed.
Just to make sure I'm understanding you, if I used the DataSubscriber2 and 2 of the fault conditions happened at the same time, they would both cause the DataChanged sub to run? There is nothing time consuming in that sub, so even a fraction of a second time difference should let the sub finish before needing to be run again, but let's think worst case scenario where 2 faults occur at the exact same moment and both want to trigger the DataChanged sub. Will they run in their own thread? Will they be queued to run one after another? Will the second trigger be ignored?
I like the idea of cleaning up the scores of subscribers I currently have, but I want to make sure nothing is missed.