I don't exactly understand what you mean. By "infinite polling", do you
mean sitting in a loop and polling indefinitely (maybe sleeping once in
a while), or polling once every X seconds for ever?
If it's the former, then yes, you can. Fire the polling method using an
async delegate to run it on a second thread.
If it's the latter, no, you can't directly - you'll need to use a
System.Threading.Timer to trigger the poll once every X seconds.
Regards,
-Adam.
Viet wrote:
Can I use Async delegates to do infinite polling in vb.net?