Tutorial by Examples

You can start some slow process in parallel and then collect the results when they are done: Public Sub Main() Dim results = Task.WhenAll(SlowCalculation, AnotherSlowCalculation).Result For Each result In results Console.WriteLine(result) Next End Sub Async Functio...
You can create an IEnumerable of Task by passing AddressOf AsyncMethod to the LINQ Select method and then start and wait all the results with Task.WhenAll If your method has parameters matching the previous LINQ chain call, they will be automatically mapped. Public Sub Main() Dim tasks = Enum...

Page 1 of 1