Skip to content

Commit

Permalink
Merge pull request #28171 from jasonmalinowski/restore-specializedtas…
Browse files Browse the repository at this point in the history
…ks.emptytask

Add SpecializedTasks.EmptyTask back
  • Loading branch information
jasonmalinowski authored Jun 27, 2018
2 parents 3394efe + 1243648 commit 11e5b43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Workspaces/Core/Portable/Utilities/SpecializedTasks.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
Expand All @@ -12,6 +13,10 @@ internal static class SpecializedTasks
public static readonly Task<bool> True = Task.FromResult(true);
public static readonly Task<bool> False = Task.FromResult(false);

// This is being consumed through InternalsVisibleTo by Source-Based test discovery
[Obsolete("Use Task.CompletedTask instead which is available in the framework.")]
public static readonly Task EmptyTask = Task.CompletedTask;

public static Task<T> Default<T>()
{
return Empty<T>.Default;
Expand Down

0 comments on commit 11e5b43

Please sign in to comment.