4 ms·
Yeah the stream isnt being closed properly as it is likely still trying to fill a buffer that no longer exists. The CancellationToken is a good idea regardless
by treebeard901 1y ago
Yeah the stream isnt being closed properly as it is likely still trying to fill a buffer that no longer exists.
The CancellationToken is a good idea regardless because you know once youve written the result, that you no longer need to wait for results.
Using has similar problems with things like database connections remaining open.