Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 8db28b9

Browse files
committed
Updates for mono/2019-06
3 extension methods extracted from `System.Threading.Tasks.TaskExtensions` to a new `System.Threading.Tasks.TaskAsyncEnumerableExtensions` class. They stay in the same namespace and being extension methods, they should not break anything. public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T> (this System.Collections.Generic.IAsyncEnumerable<T>, bool); public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait (this System.IAsyncDisposable, bool); public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T> (this System.Collections.Generic.IAsyncEnumerable<T>, System.Threading.CancellationToken); Context: dotnet/standard@ebeec50#diff-93ef3714cd10edf17d6d8045cf3406b8, dotnet/android#3155 (comment)
1 parent 7fe95c1 commit 8db28b9

File tree

2 files changed

+40
-33
lines changed

2 files changed

+40
-33
lines changed

reference/System.Core.xml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18790,27 +18790,6 @@
1879018790
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
1879118791
</attributes>
1879218792
<methods>
18793-
<method name="ConfigureAwait(System.Collections.Generic.IAsyncEnumerable`1[T], System.Boolean)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1[T]">
18794-
<attributes>
18795-
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
18796-
</attributes>
18797-
<parameters>
18798-
<parameter name="source" position="0" attrib="0" type="System.Collections.Generic.IAsyncEnumerable`1[T]" direction="this" />
18799-
<parameter name="continueOnCapturedContext" position="1" attrib="0" type="System.Boolean" />
18800-
</parameters>
18801-
<generic-parameters>
18802-
<generic-parameter name="T" attributes="0" />
18803-
</generic-parameters>
18804-
</method>
18805-
<method name="ConfigureAwait(System.IAsyncDisposable, System.Boolean)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredAsyncDisposable">
18806-
<attributes>
18807-
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
18808-
</attributes>
18809-
<parameters>
18810-
<parameter name="source" position="0" attrib="0" type="System.IAsyncDisposable" direction="this" />
18811-
<parameter name="continueOnCapturedContext" position="1" attrib="0" type="System.Boolean" />
18812-
</parameters>
18813-
</method>
1881418793
<method name="Unwrap(System.Threading.Tasks.Task`1[System.Threading.Tasks.Task])" attrib="150" static="true" returntype="System.Threading.Tasks.Task">
1881518794
<attributes>
1881618795
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
@@ -18830,18 +18809,6 @@
1883018809
<generic-parameter name="TResult" attributes="0" />
1883118810
</generic-parameters>
1883218811
</method>
18833-
<method name="WithCancellation(System.Collections.Generic.IAsyncEnumerable`1[T], System.Threading.CancellationToken)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1[T]">
18834-
<attributes>
18835-
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
18836-
</attributes>
18837-
<parameters>
18838-
<parameter name="source" position="0" attrib="0" type="System.Collections.Generic.IAsyncEnumerable`1[T]" direction="this" />
18839-
<parameter name="cancellationToken" position="1" attrib="0" type="System.Threading.CancellationToken" />
18840-
</parameters>
18841-
<generic-parameters>
18842-
<generic-parameter name="T" attributes="0" />
18843-
</generic-parameters>
18844-
</method>
1884518812
</methods>
1884618813
</class>
1884718814
</classes>

reference/mscorlib.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117337,6 +117337,46 @@
117337117337
</method>
117338117338
</methods>
117339117339
</class>
117340+
<class name="TaskAsyncEnumerableExtensions" type="class" base="System.Object" sealed="true" abstract="true" charset="Ansi" layout="Auto">
117341+
<attributes>
117342+
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
117343+
</attributes>
117344+
<methods>
117345+
<method name="ConfigureAwait(System.Collections.Generic.IAsyncEnumerable`1[T], System.Boolean)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1[T]">
117346+
<attributes>
117347+
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
117348+
</attributes>
117349+
<parameters>
117350+
<parameter name="source" position="0" attrib="0" type="System.Collections.Generic.IAsyncEnumerable`1[T]" direction="this" />
117351+
<parameter name="continueOnCapturedContext" position="1" attrib="0" type="System.Boolean" />
117352+
</parameters>
117353+
<generic-parameters>
117354+
<generic-parameter name="T" attributes="0" />
117355+
</generic-parameters>
117356+
</method>
117357+
<method name="ConfigureAwait(System.IAsyncDisposable, System.Boolean)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredAsyncDisposable">
117358+
<attributes>
117359+
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
117360+
</attributes>
117361+
<parameters>
117362+
<parameter name="source" position="0" attrib="0" type="System.IAsyncDisposable" direction="this" />
117363+
<parameter name="continueOnCapturedContext" position="1" attrib="0" type="System.Boolean" />
117364+
</parameters>
117365+
</method>
117366+
<method name="WithCancellation(System.Collections.Generic.IAsyncEnumerable`1[T], System.Threading.CancellationToken)" attrib="150" static="true" returntype="System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1[T]">
117367+
<attributes>
117368+
<attribute name="System.Runtime.CompilerServices.ExtensionAttribute" />
117369+
</attributes>
117370+
<parameters>
117371+
<parameter name="source" position="0" attrib="0" type="System.Collections.Generic.IAsyncEnumerable`1[T]" direction="this" />
117372+
<parameter name="cancellationToken" position="1" attrib="0" type="System.Threading.CancellationToken" />
117373+
</parameters>
117374+
<generic-parameters>
117375+
<generic-parameter name="T" attributes="0" />
117376+
</generic-parameters>
117377+
</method>
117378+
</methods>
117379+
</class>
117340117380
<class name="TaskCanceledException" type="class" base="System.OperationCanceledException" serializable="true" charset="Ansi" layout="Auto">
117341117381
<interfaces>
117342117382
<interface name="System.Runtime.Serialization.ISerializable" />

0 commit comments

Comments
 (0)