How to make a very simple asynchronous method call in vb.net

前端 未结 4 1828
南方客
南方客 2020-12-30 05:17

I just have a simple vb.net website that need to call a Sub that performs a very long task that works with syncing up some directories in the filesystem (details not importa

4条回答
  •  爱一瞬间的悲伤
    2020-12-30 05:43

    I also was looking for information on Asynchronous programming in VB. In addition to this thread, I also found the following: beginning with Visual Studio 2012 and .Net Framework 4.5, VB was given two new keywords to make a method asynchronous right in the declaration, without using Thread or Threadpool. The new keywords are "Async" and "Await". You may refer to the following links if you wish:

    http://msdn.microsoft.com/library/hh191443%28vs.110%29.aspx

    https://msdn.microsoft.com/en-us/library/hh191564%28v=vs.110%29.aspx

提交回复
热议问题