To have the possibility to cancel the service directly after the dispose you should be able to pass the "stopTimeDelay" attribute directly to the constructor.
It is useful to fix rare crashes that occur when an exception is thrown within the timeout. In my case it was because the app forces a Wifi switch immediately after dispose the stream.
To have the possibility to cancel the service directly after the dispose you should be able to pass the "stopTimeDelay" attribute directly to the constructor.
It is useful to fix rare crashes that occur when an exception is thrown within the timeout. In my case it was because the app forces a Wifi switch immediately after dispose the stream.