Android Question Stream NewData event

Nickelgrass

Active Member
Licensed User
Longtime User
Hello,
what happens, if new data arrives in a stream while the last data is still being processed? Will it call the NewData sub twice or will it wait until the first one is finished and then emidiately raise it again?
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Do not expect to get all data in one event. You may need to buffer them and do the processing later.
 
Upvote 0

Nickelgrass

Active Member
Licensed User
Longtime User
Do not expect to get all data in one event. You may need to buffer them and do the processing later.
Hello and thanks for the reply. But that was not the question. That is clear. But what happens when the processing of the data takes long time. So long, that new data arrives while the previous data is still being processed.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Hello and thanks for the reply. But that was not the question. That is clear. But what happens when the processing of the data takes long time. So long, that new data arrives while the previous data is still being processed.
You don't have to worry about that the processing of the data takes long time. the new data arrives is after the previous processing data is done.
 
Last edited:
Upvote 0
Top