Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
Imports System.Threading
|
||||
|
||||
Module Module1
|
||||
|
||||
Sub SleepSort(items As IEnumerable(Of Integer))
|
||||
For Each item In items
|
||||
Task.Factory.StartNew(Sub()
|
||||
Thread.Sleep(1000 * item)
|
||||
Console.WriteLine(item)
|
||||
End Sub)
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Sub Main()
|
||||
SleepSort({1, 5, 2, 1, 8, 10, 3})
|
||||
Console.ReadKey()
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue