Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Add [EnumeratorCancellation] to Microsoft.Bcl.AsyncInterfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed May 16, 2019
1 parent 5310b56 commit fabfba4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public readonly partial struct Enumerator
public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<bool> MoveNextAsync() { throw null; }
}
}
[System.AttributeUsageAttribute(AttributeTargets.Parameter, Inherited = false)]
public sealed class EnumeratorCancellationAttribute : System.Attribute
{
public EnumeratorCancellationAttribute() { }
}
}
namespace System.Threading.Tasks
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<Compile Include="$(CommonPath)\CoreLib\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs">
<Link>ProductionCode\Common\CoreLib\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs</Link>
</Compile>
<Compile Include="..\..\System.Runtime\src\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs">
<Link>ProductionCode\System.Runtime\src\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'netstandard'">
<Reference Include="System.Runtime" />
Expand Down

0 comments on commit fabfba4

Please sign in to comment.