4 ms·
If there's no actual yield, async/await IS synchronous.
by jayd16 5y ago
If there's no actual yield, async/await IS synchronous.
- int_19h 5y agoThe method still needs to allocate a Task, though. ValueTask along with more aggressive placement of structs in registers helps with that in more recent .NET versions, but it's still not entirely free.