Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#ValueTask vs TaskSingle-choice MCQ

What does this code print, and why is it a classic `ValueTask` misuse?

ValueTask<int> vt = GetAsync(); int a = await vt; int b = await vt; Console.WriteLine($"{a} {b}");