- Home /
Question by
levarg · Jan 12, 2016 at 09:22 PM ·
networkingasynctcp
Async execution with blocking methods
Hi guys,
yes - I used the search function but could not find the exact thing I needed. I'm running a Client which should asynchronously listen to it's input stream via stream.ReadByte(); Since this is a blocking method, nothing gets executed until something is written into the buffer. So I need to run that async - but how? Tasks don't seem to work in Unity (Task.Run(), for example).
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612055842im_/https://answers.unity.com/themes/thub/images/avi.jpg)