Skip to content

Commit eee4cae

Browse files
committed
Remove ExperimentalAttribute from async helpers
1 parent 0986839 commit eee4cae

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace System.Runtime.CompilerServices
1212
{
1313
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
14-
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5007", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
1514
public static partial class AsyncHelpers
1615
{
1716
#if CORECLR

src/libraries/System.Runtime/ref/System.Runtime.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14138,7 +14138,6 @@ public static void RunModuleConstructor(System.ModuleHandle module) { }
1413814138
public delegate void TryCode(object? userData);
1413914139
}
1414014140
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
14141-
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5007", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
1414214141
public static partial class AsyncHelpers
1414314142
{
1414414143
[System.Runtime.Versioning.RequiresPreviewFeaturesAttribute]

src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
using System.Runtime.CompilerServices;
88
using Xunit;
99

10-
#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only
11-
1210
public class Async2FibonacciWithYields
1311
{
1412
const int iterations = 3;

src/tests/async/reflection/reflection-simple.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public static void MethodInfo_Invoke_TaskReturning()
2222
Assert.Equal(100, (int)(r.Result + d.Bar().Result));
2323
}
2424

25-
#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only
2625
[Fact]
2726
public static void MethodInfo_Invoke_AsyncHelper()
2827
{
@@ -37,7 +36,6 @@ public static void MethodInfo_Invoke_AsyncHelper()
3736
// dynamic d = FooTask();
3837
// System.Runtime.CompilerServices.AsyncHelpers.Await(d);
3938
}
40-
#pragma warning restore SYSLIB5007
4139

4240
private static async Task<int> Foo()
4341
{
@@ -164,9 +162,7 @@ public static void TypeBuilder_DefineMethod()
164162
// }
165163
ILGenerator ilGenerator = methodBuilder.GetILGenerator();
166164
ilGenerator.Emit(OpCodes.Ldarg_0);
167-
#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only
168165
var mi = typeof(System.Runtime.CompilerServices.AsyncHelpers).GetMethod("Await", BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(Task) })!;
169-
#pragma warning restore SYSLIB5007
170166
ilGenerator.EmitCall(OpCodes.Call, mi, new Type[] { typeof(Task) });
171167
ilGenerator.Emit(OpCodes.Ret);
172168

0 commit comments

Comments
 (0)