Skip to content

Commit 6fd41af

Browse files
authored
Merge pull request #347 from fsprojects/repo-assist/improve-xmldoc-returns-tags-20260316-57d9cdc0fc84d55c
[Repo Assist] docs: add missing (returns) XML tags to singleton, isEmpty, length, lengthOrMax, lengthBy, lengthByAsync
2 parents a4b36b7 + e1169e4 commit 6fd41af

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

release-notes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Release notes:
1111
- adds TaskSeq.chunkBy, chunkByAsync, #345
1212
- adds TaskSeq.threadState, threadStateAsync, #345
1313
- adds docs/ with fsdocs-based documentation site covering generating, transforming, consuming, combining and advanced operations
14+
- docs: adds missing XML <returns> documentation tags to singleton, isEmpty, length, lengthOrMax, lengthBy, and lengthByAsync
1415
- test: adds 70 new tests to TaskSeq.Fold.Tests.fs covering call-count assertions, folder-not-called-on-empty, ordering, null initial state, and fold/foldAsync equivalence
1516

1617
0.7.0

src/FSharp.Control.TaskSeq/TaskSeq.fsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ type TaskSeq =
102102
/// </summary>
103103
///
104104
/// <param name="value">The input item to use as the single item of the task sequence.</param>
105+
/// <returns>A task sequence containing exactly one element.</returns>
105106
static member singleton: value: 'T -> TaskSeq<'T>
106107

107108
/// <summary>
@@ -152,6 +153,7 @@ type TaskSeq =
152153
/// </summary>
153154
///
154155
/// <param name="source">The input task sequence.</param>
156+
/// <returns>A task returning <c>true</c> if the sequence contains no elements; <c>false</c> otherwise.</returns>
155157
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
156158
static member isEmpty: source: TaskSeq<'T> -> Task<bool>
157159

@@ -161,6 +163,7 @@ type TaskSeq =
161163
/// </summary>
162164
///
163165
/// <param name="source">The input task sequence.</param>
166+
/// <returns>A task returning the number of elements in the sequence.</returns>
164167
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
165168
static member length: source: TaskSeq<'T> -> Task<int>
166169

@@ -172,6 +175,7 @@ type TaskSeq =
172175
///
173176
/// <param name="max">Limit at which to stop evaluating source items for finding the length.</param>
174177
/// <param name="source">The input task sequence.</param>
178+
/// <returns>A task returning the actual length of the sequence, or <paramref name="max" /> if the sequence is longer than <paramref name="max" />.</returns>
175179
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
176180
static member lengthOrMax: max: int -> source: TaskSeq<'T> -> Task<int>
177181

@@ -183,6 +187,7 @@ type TaskSeq =
183187
///
184188
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the count.</param>
185189
/// <param name="source">The input task sequence.</param>
190+
/// <returns>A task returning the number of elements for which <paramref name="predicate" /> returns <c>true</c>.</returns>
186191
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
187192
static member lengthBy: predicate: ('T -> bool) -> source: TaskSeq<'T> -> Task<int>
188193

@@ -194,6 +199,7 @@ type TaskSeq =
194199
///
195200
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the count.</param>
196201
/// <param name="source">The input task sequence.</param>
202+
/// <returns>A task returning the number of elements for which <paramref name="predicate" /> returns <c>true</c>.</returns>
197203
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
198204
static member lengthByAsync: predicate: ('T -> #Task<bool>) -> source: TaskSeq<'T> -> Task<int>
199205

0 commit comments

Comments
 (0)