Skip to content

Commit 9338100

Browse files
authored
Merge pull request #234 from fsprojects/doc-cleanup-reassessed
Xml Doc comment cleanup reassessed
2 parents d84301d + 79d55ec commit 9338100

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

src/FSharp.Control.TaskSeq.sln.DotSettings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
<s:Boolean x:Key="/Default/UserDictionary/Words/=nestings/@EntryIndexedValue">True</s:Boolean>
77
<s:Boolean x:Key="/Default/UserDictionary/Words/=resumable/@EntryIndexedValue">True</s:Boolean>
88
<s:Boolean x:Key="/Default/UserDictionary/Words/=specialcase/@EntryIndexedValue">True</s:Boolean>
9+
<s:Boolean x:Key="/Default/UserDictionary/Words/=infinitum/@EntryIndexedValue">True</s:Boolean>
10+
<s:Boolean x:Key="/Default/UserDictionary/Words/=iteri/@EntryIndexedValue">True</s:Boolean>
11+
<s:Boolean x:Key="/Default/UserDictionary/Words/=taskseqs/@EntryIndexedValue">True</s:Boolean>
12+
<s:Boolean x:Key="/Default/UserDictionary/Words/=typeref/@EntryIndexedValue">True</s:Boolean>
913
</wpf:ResourceDictionary>

src/FSharp.Control.TaskSeq/TaskSeq.fsi

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,9 @@ type TaskSeq =
547547
/// Builds a new task sequence whose elements are the results of applying the <paramref name="mapper" />
548548
/// function to each of the elements of the input task sequence in <paramref name="source" />, passing
549549
/// an extra zero-based index argument to the <paramref name="mapper" /> function.
550-
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
551-
/// input task sequence.
552-
///
553-
/// If <paramref name="mapper" /> is asynchronous, use <see cref="TaskSeq.mapiAsync" />.
550+
/// The given function will be applied as elements are pulled using the <see cref="MoveNextAsync" />
551+
/// method on async enumerators retrieved from the input task sequence.
552+
/// Does not evaluate the input sequence until requested.
554553
/// </summary>
555554
///
556555
/// <param name="mapper">A function to transform items from the input task sequence that also access the current index.</param>
@@ -578,10 +577,9 @@ type TaskSeq =
578577
/// Builds a new task sequence whose elements are the results of applying the asynchronous <paramref name="mapper" />
579578
/// function to each of the elements of the input task sequence in <paramref name="source" />, passing
580579
/// an extra zero-based index argument to the <paramref name="mapper" /> function.
581-
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
582-
/// input task sequence.
583-
///
584-
/// If <paramref name="mapper" /> is synchronous, use <see cref="TaskSeq.mapi" />.
580+
/// The given function will be applied as elements are pulled using the <see cref="MoveNextAsync" />
581+
/// method on async enumerators retrieved from the input task sequence.
582+
/// Does not evaluate the input sequence until requested.
585583
/// </summary>
586584
///
587585
/// <param name="mapper">An asynchronous function to transform items from the input task sequence that also access the current index.</param>
@@ -903,7 +901,7 @@ type TaskSeq =
903901
/// <summary>
904902
/// Returns a task sequence that, when iterated, yields elements of the underlying sequence while the
905903
/// given function <paramref name="predicate" /> returns <see cref="true" />, and then returns no further elements.
906-
/// The first element where the predicate returns <see cref="false" /> is not included in the resulting sequence
904+
/// Stops consuming the source and yielding items as soon as the predicate returns <c>false</c>.
907905
/// (see also <see cref="TaskSeq.takeWhileInclusive" />).
908906
/// If <paramref name="predicate" /> is asynchronous, use <see cref="TaskSeq.takeWhileAsync" />.
909907
/// </summary>
@@ -917,7 +915,7 @@ type TaskSeq =
917915
/// <summary>
918916
/// Returns a task sequence that, when iterated, yields elements of the underlying sequence while the
919917
/// given asynchronous function <paramref name="predicate" /> returns <see cref="true" />, and then returns no further elements.
920-
/// The first element where the predicate returns <see cref="false" /> is not included in the resulting sequence
918+
/// Stops consuming the source and yielding items as soon as the predicate returns <c>false</c>.
921919
/// (see also <see cref="TaskSeq.takeWhileInclusiveAsync" />).
922920
/// If <paramref name="predicate" /> is synchronous, use <see cref="TaskSeq.takeWhile" />.
923921
/// </summary>
@@ -959,9 +957,9 @@ type TaskSeq =
959957
/// <summary>
960958
/// Returns a task sequence that, when iterated, skips elements of the underlying sequence while the
961959
/// given function <paramref name="predicate" /> returns <see cref="true" />, and then yields the remaining
962-
/// elements. The first element where the predicate returns <see cref="false" /> is returned, which means that this
963-
/// function will skip 0 or more elements (see also <see cref="TaskSeq.skipWhileInclusive" />).
964-
/// If <paramref name="predicate" /> is asynchronous, use <see cref="TaskSeq.skipWhileAsync" />.
960+
/// elements. Elements where the predicate returns <see cref="false" /> are propagated, which means that this
961+
/// function may not skip any elements (see also <see cref="TaskSeq.skipWhileInclusive" />).
962+
/// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.skipWhileAsync" />.
965963
/// </summary>
966964
///
967965
/// <param name="predicate">A function that evaluates to false when no more items should be skipped.</param>
@@ -973,9 +971,9 @@ type TaskSeq =
973971
/// <summary>
974972
/// Returns a task sequence that, when iterated, skips elements of the underlying sequence while the
975973
/// given asynchronous function <paramref name="predicate" /> returns <see cref="true" />, and then yields the
976-
/// remaining elements. The first element where the predicate returns <see cref="false" /> is returned, which
977-
/// means that this function will skip 0 or more elements (see also <see cref="TaskSeq.skipWhileInclusiveAsync" />).
978-
/// If <paramref name="predicate" /> is synchronous, use <see cref="TaskSeq.skipWhile" />.
974+
/// remaining elements. Elements where the predicate returns <see cref="false" /> are propagated, which means that this
975+
/// function may not skip any elements (see also <see cref="TaskSeq.skipWhileInclusiveAsync" />).
976+
/// If <paramref name="predicate" /> is synchronous, consider using <see cref="TaskSeq.skipWhile" />.
979977
/// </summary>
980978
///
981979
/// <param name="predicate">An asynchronous function that evaluates to false when no more items should be skipped.</param>
@@ -986,27 +984,27 @@ type TaskSeq =
986984

987985
/// <summary>
988986
/// Returns a task sequence that, when iterated, skips elements of the underlying sequence until the given
989-
/// function <paramref name="predicate" /> returns <see cref="false" />, also skips that element
990-
/// and then yields the remaining elements (see also <see cref="TaskSeq.skipWhile" />). This function skips
987+
/// function <paramref name="predicate" /> returns <see cref="false" />, <i>also skips that element</i>
988+
/// and then yields the remaining elements (see also <see cref="TaskSeq.skipWhile" />). It will thus always skip
991989
/// at least one element of a non-empty sequence, or returns the empty task sequence if the input is empty.
992990
/// If <paramref name="predicate" /> is asynchronous, use <see cref="TaskSeq.skipWhileInclusiveAsync" />.
993991
/// </summary>`
994992
///
995-
/// <param name="predicate">A function that evaluates to false when no more items should be skipped.</param>
993+
/// <param name="predicate">A function that evaluates to false for the final item to be skipped.</param>
996994
/// <param name="source">The input task sequence.</param>
997995
/// <returns>The resulting task sequence.</returns>
998996
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
999997
static member skipWhileInclusive: predicate: ('T -> bool) -> source: TaskSeq<'T> -> TaskSeq<'T>
1000998

1001999
/// <summary>
10021000
/// Returns a task sequence that, when iterated, skips elements of the underlying sequence until the given
1003-
/// function <paramref name="predicate" /> returns <see cref="false" />, also skips that element
1004-
/// and then yields the remaining elements (see also <see cref="TaskSeq.skipWhileAsync" />). This function skips
1001+
/// function <paramref name="predicate" /> returns <see cref="false" />, <i>also skips that element</i>
1002+
/// and then yields the remaining elements (see also <see cref="TaskSeq.skipWhileAsync" />). It will thus always skip
10051003
/// at least one element of a non-empty sequence, or returns the empty task sequence if the input is empty.
10061004
/// If <paramref name="predicate" /> is synchronous, use <see cref="TaskSeq.skipWhileInclusive" />.
10071005
/// </summary>
10081006
///
1009-
/// <param name="predicate">An asynchronous function that evaluates to false when no more items should be skipped.</param>
1007+
/// <param name="predicate">An asynchronous function that evaluates to false for the final item to be skipped.</param>
10101008
/// <param name="source">The input task sequence.</param>
10111009
/// <returns>The resulting task sequence.</returns>
10121010
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
@@ -1248,6 +1246,9 @@ type TaskSeq =
12481246

12491247
/// <summary>
12501248
/// Applies the function <paramref name="folder" /> to each element in the task sequence, threading an accumulator
1249+
/// argument of type <typeref name="'State" /> through the computation. If the input function is <paramref name="f" /> and the elements are <paramref name="i0...iN" />
1250+
/// then computes<paramref name="f (... (f s i0)...) iN" />.
1251+
/// If the accumulator function <paramref name="folder" /> is asynchronous, consider using <see cref="TaskSeq.foldAsync" />.
12511252
/// argument of type <paramref name="'State" /> through the computation. If the input function is <paramref name="f" /> and the elements are <paramref name="i0...iN" />
12521253
/// then computes <paramref name="f (... (f s i0)...) iN" />.
12531254
/// If the accumulator function <paramref name="folder" /> is asynchronous, use <see cref="TaskSeq.foldAsync" />.
@@ -1264,7 +1265,7 @@ type TaskSeq =
12641265
/// Applies the asynchronous function <paramref name="folder" /> to each element in the task sequence, threading an accumulator
12651266
/// argument of type <paramref name="'State" /> through the computation. If the input function is <paramref name="f" /> and the elements are <paramref name="i0...iN" />
12661267
/// then computes <paramref name="f (... (f s i0)...) iN" />.
1267-
/// If the accumulator function <paramref name="folder" /> is synchronous, use <see cref="TaskSeq.fold" />.
1268+
/// If the accumulator function <paramref name="folder" /> is synchronous, consider using <see cref="TaskSeq.fold" />.
12681269
/// </summary>
12691270
///
12701271
/// <param name="folder">A function that updates the state with each element from the sequence.</param>

0 commit comments

Comments
 (0)