Skip to content

Commit

Permalink
Add [EnumeratorCancellation] to Microsoft.Bcl.AsyncInterfaces (dotnet…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored May 16, 2019
1 parent 86ad4ad commit 3ee0e26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredAsyncDisposable))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<>))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore<>))]
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 3ee0e26

Please sign in to comment.