@@ -95,7 +95,7 @@ public static ValueTask UpdateValue<T>(this IListState<T> state, Func<Option<IIm
95
95
/// <typeparam name="T">The type of the items in the list.</typeparam>
96
96
/// <param name="state">The list state onto which the item should be added.</param>
97
97
/// <param name="item">The item to add.</param>
98
- /// <param name="ct">A token to abort the async add operation.</param>
98
+ /// <param name="ct">A token to abort the async insert operation.</param>
99
99
/// <returns></returns>
100
100
public static ValueTask InsertAsync < T > ( this IListState < T > state , T item , CancellationToken ct = default )
101
101
=> state . UpdateDataAsync ( items => Option . Some ( ( items . SomeOrDefault ( ) ?? ImmutableList < T > . Empty ) . Insert ( 0 , item ) ) , ct ) ;
@@ -117,7 +117,7 @@ public static ValueTask AddAsync<T>(this IListState<T> state, T item, Cancellati
117
117
/// <typeparam name="T">The type of the items in the list.</typeparam>
118
118
/// <param name="state">The list state onto which the item should be added.</param>
119
119
/// <param name="match">Predicate to determine which items should be removed.</param>
120
- /// <param name="ct">A token to abort the async add operation.</param>
120
+ /// <param name="ct">A token to abort the async remove operation.</param>
121
121
/// <returns></returns>
122
122
public static ValueTask RemoveAllAsync < T > ( this IListState < T > state , Predicate < T > match , CancellationToken ct = default )
123
123
=> state . UpdateDataAsync ( itemsOpt => itemsOpt . Map ( items => items . RemoveAll ( match ) ) , ct ) ;
@@ -130,7 +130,7 @@ public static ValueTask RemoveAllAsync<T>(this IListState<T> state, Predicate<T>
130
130
/// <param name="state">The list state onto which the item should be added.</param>
131
131
/// <param name="oldItem">The old value of the item.</param>
132
132
/// <param name="newItem">The new value for the item.</param>
133
- /// <param name="ct">A token to abort the async add operation.</param>
133
+ /// <param name="ct">A token to abort the async update operation.</param>
134
134
/// <returns></returns>
135
135
public static ValueTask UpdateItemAsync < T > ( this IListState < T > state , T oldItem , T newItem , CancellationToken ct = default )
136
136
where T : notnull , IKeyEquatable < T >
@@ -157,7 +157,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem,
157
157
/// <param name="state">The list state onto which the item should be added.</param>
158
158
/// <param name="oldItem">The old value of the item.</param>
159
159
/// <param name="newItem">The new value for the item.</param>
160
- /// <param name="ct">A token to abort the async add operation.</param>
160
+ /// <param name="ct">A token to abort the async update operation.</param>
161
161
/// <returns></returns>
162
162
public static ValueTask UpdateItemAsync < T > ( this IListState < T ? > state , T oldItem , T ? newItem , CancellationToken ct = default )
163
163
where T : struct , IKeyEquatable < T >
@@ -184,7 +184,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem,
184
184
/// <param name="state">The list state onto which the item should be added.</param>
185
185
/// <param name="oldItem">The old value of the item.</param>
186
186
/// <param name="updater">How to update items.</param>
187
- /// <param name="ct">A token to abort the async add operation.</param>
187
+ /// <param name="ct">A token to abort the async update operation.</param>
188
188
/// <returns></returns>
189
189
public static ValueTask UpdateItemAsync < T > ( this IListState < T > state , T oldItem , Func < T , T > updater , CancellationToken ct = default )
190
190
where T : notnull , IKeyEquatable < T >
@@ -210,7 +210,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T> state, T oldItem,
210
210
/// <param name="state">The list state onto which the item should be added.</param>
211
211
/// <param name="oldItem">The old value of the item.</param>
212
212
/// <param name="updater">How to update items.</param>
213
- /// <param name="ct">A token to abort the async add operation.</param>
213
+ /// <param name="ct">A token to abort the async update operation.</param>
214
214
/// <returns></returns>
215
215
public static ValueTask UpdateItemAsync < T > ( this IListState < T ? > state , T oldItem , Func < T ? , T ? > updater , CancellationToken ct = default )
216
216
where T : struct , IKeyEquatable < T >
@@ -237,7 +237,7 @@ public static ValueTask UpdateItemAsync<T>(this IListState<T?> state, T oldItem,
237
237
/// <param name="state">The list state onto which the item should be added.</param>
238
238
/// <param name="match">Predicate to determine which items should be removed.</param>
239
239
/// <param name="updater">How to update items.</param>
240
- /// <param name="ct">A token to abort the async add operation.</param>
240
+ /// <param name="ct">A token to abort the async update operation.</param>
241
241
/// <returns></returns>
242
242
public static ValueTask UpdateAllAsync < T > ( this IListState < T > state , Predicate < T > match , Func < T , T > updater , CancellationToken ct = default )
243
243
=> state . UpdateDataAsync (
@@ -272,7 +272,7 @@ public static ValueTask UpdateAsync<T>(this IListState<T> state, Predicate<T> ma
272
272
/// <typeparam name="T">The type of the items in the list.</typeparam>
273
273
/// <param name="listState">The list state onto which the item should be updated.</param>
274
274
/// <param name="item">The updated version of the item.</param>
275
- /// <param name="ct">A token to abort the async add operation.</param>
275
+ /// <param name="ct">A token to abort the async update operation.</param>
276
276
/// <returns></returns>
277
277
public static ValueTask UpdateAsync < T > ( this IListState < T > listState , T item , CancellationToken ct = default )
278
278
where T : IKeyEquatable < T >
0 commit comments