Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27240

Should I use the BackGroundWorker Class to handle a NetworkStream asychronously.

$
0
0
I know a Networkstream has BeginRead method (readAsync in .net 4.5 as well) for asychronous operation. I am also aware I can create my own thread to handle this but a backGroundWorker appears to be an easier way to do it. With lots of nice events that are raised on the right threads etc.

Am I just being lazy or are there goods reasons to use/not use a Backgroundworker?

Viewing all articles
Browse latest Browse all 27240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>