public async Task <TimeSpan> GetMany_AwaitingAll_IOBound_Good() { var ioBoundExample = new IoBoundExample(); var timeTaken = await ioBoundExample.GetMany_AwaitingAll_IOBound_Good(); // this is now allows the IO latency effect to be reduced return(timeTaken); }
public async Task <TimeSpan> GetMany_AwaitingEach_IOBound_Bad() { var ioBoundExample = new IoBoundExample(); var timeTaken = await ioBoundExample.GetMany_AwaitingEach_Bad(); // this works but could be faster return(timeTaken); }