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

You await the same ValueTask instance twice. Why is this a bug?

ValueTask<int> vt = GetValueAsync(); int a = await vt; int b = await vt; // second await