@Marc Hillman , Welcome to Microsoft Q&A, based on my test, I reproduced your problem.
According to my search, I recommend that you could refer to the answer from the stackoverflow.
It seems that we need to remove async from the Lambda because vb.net doesn't support an awaitable ValueTask.
Here is a code example you could refer to.
Public Async Function Test() As Task
Dim options As New ParallelOptions()
options.MaxDegreeOfParallelism = 10
Dim links As New List(Of String)
Await Parallel.ForEachAsync(Of String)(links, options, New Func(Of String, CancellationToken, ValueTask) _
(Function(uri, token)
End Function))
End Function
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.