Hi All,
I'm developing a mobile app in VB and I was wondering if there was anyway to pause or wait a thread without putting it to sleep. I'm just trying to maintain a wireless network connection while I check internet connectivity for 30 secs but if I put the thread to sleep the connection itself closes. The current method is
I'm racking my brain and the sdk to see if there is a wait or pause or delay function but all I can find is sleep and that is not what I want.
Thanks
I'm developing a mobile app in VB and I was wondering if there was anyway to pause or wait a thread without putting it to sleep. I'm just trying to maintain a wireless network connection while I check internet connectivity for 30 secs but if I put the thread to sleep the connection itself closes. The current method is
Code:
_sleepTimeBetweenConnectTries = 900 'milliseconds System.Threading.Thread.Sleep(_sleepTimeBetweenConnectTries)
Thanks
Comment