Skip to content

Commit 37f9be0

Browse files
author
Lifeng Lu
committed
Mark new contract an experimental feature.
1 parent 7d17e8b commit 37f9be0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Microsoft.VisualStudio.Threading/IPendingExecutionRequestState.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
using System.ComponentModel;
5+
using System.Diagnostics.CodeAnalysis;
6+
47
namespace Microsoft.VisualStudio.Threading
58
{
69
/// <summary>
710
/// An optional interface implemented by pending request state posted to the underline synchronization context. It allows synchronization context to remove completed requests.
811
/// </summary>
12+
[EditorBrowsable(EditorBrowsableState.Never)]
13+
[Experimental("VSOnly")]
914
public interface IPendingExecutionRequestState
1015
{
1116
/// <summary>

src/Microsoft.VisualStudio.Threading/JoinableTaskFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,9 @@ public void Dispose()
10581058
/// A delegate wrapper that ensures the delegate is only invoked at most once.
10591059
/// </summary>
10601060
[DebuggerDisplay("{DelegateLabel}")]
1061+
#pragma warning disable VSOnly // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
10611062
internal class SingleExecuteProtector : IPendingExecutionRequestState
1063+
#pragma warning restore VSOnly // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
10621064
{
10631065
/// <summary>
10641066
/// Executes the delegate if it has not already executed.

0 commit comments

Comments
 (0)