Skip to content

Commit 1bf7ed3

Browse files
bartelinkabelbraaksma
authored andcommitted
XML Doc rewording, fixes, improvements
1 parent 4dd3dcc commit 1bf7ed3

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

src/FSharp.Control.TaskSeq/TaskSeq.fsi

Lines changed: 22 additions & 21 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>
@@ -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 <code>f</code> and the elements are <code>i0...iN</code>
1250+
/// then computes <code>f (... (f s i0)...) iN</code>.
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)