1
0

TaskExt.cs 493 B

12345678910111213
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Threading.Tasks
  5. {
  6. static class TaskExt
  7. {
  8. public static readonly Task<bool> True = Task.FromResult(true);
  9. public static readonly Task<bool> False = Task.FromResult(false);
  10. public static readonly Task CompletedTask = True;
  11. }
  12. }