Add EnumeratorCancellationAttribute (dotnet/corefx#37064)
authorStephen Toub <stoub@microsoft.com>
Sat, 20 Apr 2019 20:07:52 +0000 (16:07 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2019 20:07:52 +0000 (16:07 -0400)
commit21ffceb17a7bd144d8f6e6f9fdec5aa7859f5251
tree5c7513d24b0ebd4f6433343e16dc6b4f6f78c991
parent6e1b20e1cf03cdf471f8c2b16fac21be3716ee67
Add EnumeratorCancellationAttribute (dotnet/corefx#37064)

* Update ChannelReader.ReadAllAsync for EnumeratorCancellationAttribute

* Add EnumeratorCancellationAttribute

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/13cd96122c25328a1b180a6289923657180a7b69
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Runtime/src/System.Runtime.csproj
src/libraries/System.Runtime/src/System/Runtime/CompilerServices/EnumeratorCancellationAttribute.cs [new file with mode: 0644]
src/libraries/System.Runtime/tests/System/Runtime/CompilerServices/AttributesTests.netcoreapp.cs
src/libraries/System.Threading.Channels/ref/System.Threading.Channels.netcoreapp.cs
src/libraries/System.Threading.Channels/src/System/Threading/Channels/ChannelReader.netcoreapp.cs
src/libraries/System.Threading.Channels/tests/ChannelTestBase.netcoreapp.cs