6 references to WhenAll
Microsoft.CodeAnalysis.Features (1)
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
206
var types = await SpecializedTasks.
WhenAll
(DetermineParameterTypes(cancellationToken).Select(t => FixTypeAsync(t, cancellationToken))).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
UtilityTest\SpecializedTasksTests.cs (5)
29
Assert.Throws<ArgumentNullException>(() => SpecializedTasks.
WhenAll
<int>((IEnumerable<ValueTask<int>>)null!));
36
var whenAll = SpecializedTasks.
WhenAll
(SpecializedCollections.EmptyEnumerable<ValueTask<int>>());
45
var whenAll = SpecializedTasks.
WhenAll
(new[] { new ValueTask<int>(0), new ValueTask<int>(1) });
54
var whenAll = SpecializedTasks.
WhenAll
(new[] { new ValueTask<int>(Task.FromCanceled<int>(new CancellationToken(true))) });
64
var whenAll = SpecializedTasks.
WhenAll
(new[] { new ValueTask<int>(completionSource.Task) });