/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/vb/startnew1.vb
22 строки
801 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
' Visual Basic .NET Document Option Strict On ' <Snippet7> Imports System.Threading.Tasks Module Example3 Public Sub Main() Dim t As Task = Task.Factory.StartNew(Sub() ' Just loop. Dim ctr As Integer = 0 For ctr = 0 To 1000000 Next Console.WriteLine("Finished {0} loop iterations", ctr) End Sub) t.Wait() End Sub End Module ' The example displays the following output: ' Finished 1000001 loop iterations ' </Snippet7>