Use cached true, false, and empty tasks in a handful of places
In a handful of places, Task.FromResult(true), Task.FromResult(false), and Task.FromResult(default(T)) were being used, even though equivalent cached tasks are available in SpecializedTasks. This commit just changes those ~20 call sites to use already cached tasks.
Showing
想要评论请 注册 或 登录