Reducing allocations and resource usages when using Task.Delay

added by DotNetKicks
7/22/2016 9:19:16 AM

2 Kicks, 476 Views

In my previous posts, I talked about tri state waiting, which included the following line: And then I did a deep dive into how timers on the CLR are implemented. Taken together, this presents me somewhat of a problem. What is the cost of calling a Task.Delay?