Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Well, you can wrap the function in a thread that will walk as a demon and clear the necessary variables.
About streams here
you probably need to keep track of the time it was added to the list, that is, add not only the ID but now ()
and then check at the right points and, if necessary, delete the old ones.
you can do cleaning in a separate thread, depending on what kind of task
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question