|
24 | 24 | </Attribute>
|
25 | 25 | </Attributes>
|
26 | 26 | <Docs>
|
27 |
| - <summary>To be added.</summary> |
28 |
| - <remarks>To be added.</remarks> |
| 27 | + <summary>Provides extensions methods for <see cref="T:System.Threading.Tasks.Task" /> operations with <see cref="T:System.TimeProvider" />.</summary> |
| 28 | + <remarks>The Microsoft.Bcl.TimeProvider library interfaces are intended solely for use in building against pre-.NET 8 surface area. |
| 29 | + If your code is being built against .NET 8 or later, then don't use this library.</remarks> |
29 | 30 | </Docs>
|
30 | 31 | <Members>
|
31 | 32 | <Member MemberName="CreateCancellationTokenSource">
|
|
48 | 49 | <Parameter Name="delay" Type="System.TimeSpan" />
|
49 | 50 | </Parameters>
|
50 | 51 | <Docs>
|
51 |
| - <param name="timeProvider">To be added.</param> |
52 |
| - <param name="delay">To be added.</param> |
53 |
| - <summary>To be added.</summary> |
54 |
| - <returns>To be added.</returns> |
55 |
| - <remarks>To be added.</remarks> |
| 52 | + <param name="timeProvider">The <see cref="T:System.TimeProvider" /> with which to interpret the <paramref name="delay" />.</param> |
| 53 | + <param name="delay">The time interval to wait before canceling this <see cref="T:System.Threading.CancellationTokenSource" />.</param> |
| 54 | + <summary>Initializes a new instance of the <see cref="T:System.Threading.CancellationTokenSource" /> class that will be canceled after the specified <see cref="T:System.TimeSpan" />.</summary> |
| 55 | + <returns> |
| 56 | + <see cref="T:System.Threading.CancellationTokenSource" /> that will be canceled after the specified <paramref name="delay" />.</returns> |
| 57 | + <remarks> |
| 58 | + <para> The countdown for the delay starts during the call to the constructor. When the delay expires, the constructed <see cref="T:System.Threading.CancellationTokenSource" /> is canceled if it has not been canceled already. |
| 59 | + </para> |
| 60 | + <para> If running on .NET versions earlier than .NET 8, there is a constraint when invoking <see cref="M:System.Threading.CancellationTokenSource.CancelAfter(System.TimeSpan)" /> on the resultant object. |
| 61 | + This action will not terminate the initial timer indicated by <paramref name="delay" />. However, this restriction does not apply on .NET 8 and later versions. |
| 62 | + </para> |
| 63 | + </remarks> |
| 64 | + <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="delay" /> is negative and not equal to <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" />, or is greater than the maximum allowed timer duration.</exception> |
56 | 65 | </Docs>
|
57 | 66 | </Member>
|
58 | 67 | <Member MemberName="Delay">
|
|
75 | 84 | <Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
76 | 85 | </Parameters>
|
77 | 86 | <Docs>
|
78 |
| - <param name="timeProvider">To be added.</param> |
79 |
| - <param name="delay">To be added.</param> |
80 |
| - <param name="cancellationToken">To be added.</param> |
81 |
| - <summary>To be added.</summary> |
82 |
| - <returns>To be added.</returns> |
| 87 | + <param name="timeProvider">The <see cref="T:System.TimeProvider" /> with which to interpret <paramref name="delay" />.</param> |
| 88 | + <param name="delay">The <see cref="T:System.TimeSpan" /> to wait before completing the returned task, or <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" /> to wait indefinitely.</param> |
| 89 | + <param name="cancellationToken">A cancellation token to observe while waiting for the task to complete.</param> |
| 90 | + <summary>Creates a task that completes after a specified time interval.</summary> |
| 91 | + <returns>A task that represents the time delay.</returns> |
83 | 92 | <remarks>To be added.</remarks>
|
| 93 | + <exception cref="T:System.ArgumentNullException">The <paramref name="timeProvider" /> argument is <see langword="null" />.</exception> |
| 94 | + <exception cref="T:System.ArgumentOutOfRangeException"> |
| 95 | + <paramref name="delay" /> represents a negative time interval other than <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</exception> |
84 | 96 | </Docs>
|
85 | 97 | </Member>
|
86 | 98 | <Member MemberName="WaitAsync">
|
|
104 | 116 | <Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
105 | 117 | </Parameters>
|
106 | 118 | <Docs>
|
107 |
| - <param name="task">To be added.</param> |
108 |
| - <param name="timeout">To be added.</param> |
109 |
| - <param name="timeProvider">To be added.</param> |
110 |
| - <param name="cancellationToken">To be added.</param> |
111 |
| - <summary>To be added.</summary> |
112 |
| - <returns>To be added.</returns> |
| 119 | + <param name="task">The task for which to wait on until completion.</param> |
| 120 | + <param name="timeout">The timeout after which the <see cref="T:System.Threading.Tasks.Task" /> should be faulted with a <see cref="T:System.TimeoutException" /> if it hasn't otherwise completed.</param> |
| 121 | + <param name="timeProvider">The <see cref="T:System.TimeProvider" /> with which to interpret <paramref name="timeout" />.</param> |
| 122 | + <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> to monitor for a cancellation request.</param> |
| 123 | + <summary>Gets a <see cref="T:System.Threading.Tasks.Task" /> that will complete when this <see cref="T:System.Threading.Tasks.Task" /> completes, when the specified timeout expires, or when the specified <see cref="T:System.Threading.CancellationToken" /> has cancellation requested.</summary> |
| 124 | + <returns>The <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous wait. It may or may not be the same instance as the current instance.</returns> |
113 | 125 | <remarks>To be added.</remarks>
|
| 126 | + <exception cref="T:System.ArgumentNullException"> |
| 127 | + <paramref name="task" /> or <paramref name="timeProvider" /> is <see langword="null" />.</exception> |
| 128 | + <exception cref="T:System.ArgumentOutOfRangeException"> |
| 129 | + <paramref name="timeout" /> represents a negative time interval other than <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</exception> |
114 | 130 | </Docs>
|
115 | 131 | </Member>
|
116 | 132 | <Member MemberName="WaitAsync<TResult>">
|
|
145 | 161 | </Parameters>
|
146 | 162 | <Docs>
|
147 | 163 | <typeparam name="TResult">To be added.</typeparam>
|
148 |
| - <param name="task">To be added.</param> |
149 |
| - <param name="timeout">To be added.</param> |
150 |
| - <param name="timeProvider">To be added.</param> |
151 |
| - <param name="cancellationToken">To be added.</param> |
152 |
| - <summary>To be added.</summary> |
153 |
| - <returns>To be added.</returns> |
| 164 | + <param name="task">The task for which to wait on until completion.</param> |
| 165 | + <param name="timeout">The timeout after which the <see cref="T:System.Threading.Tasks.Task" /> should be faulted with a <see cref="T:System.TimeoutException" /> if it hasn't otherwise completed.</param> |
| 166 | + <param name="timeProvider">The <see cref="T:System.TimeProvider" /> with which to interpret <paramref name="timeout" />.</param> |
| 167 | + <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> to monitor for a cancellation request.</param> |
| 168 | + <summary>Gets a <see cref="T:System.Threading.Tasks.Task" /> that will complete when this <see cref="T:System.Threading.Tasks.Task" /> completes, when the specified timeout expires, or when the specified <see cref="T:System.Threading.CancellationToken" /> has cancellation requested.</summary> |
| 169 | + <returns>The <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous wait. It may or may not be the same instance as the current instance.</returns> |
154 | 170 | <remarks>To be added.</remarks>
|
| 171 | + <exception cref="T:System.ArgumentNullException"> |
| 172 | + <paramref name="task" /> or <paramref name="timeProvider" /> is <see langword="null" />.</exception> |
| 173 | + <exception cref="T:System.ArgumentOutOfRangeException"> |
| 174 | + <paramref name="timeout" /> represents a negative time interval other than <see cref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</exception> |
155 | 175 | </Docs>
|
156 | 176 | </Member>
|
157 | 177 | </Members>
|
|
0 commit comments