How to stop / destroy a stream by name? It is created like this:
Thread t = new Thread()...
Using interrupt()
does not work, the thread still continues to work. Using stop()
stops the stream, but it doesn’t like to use the deprecated functions.