@@ -365,6 +365,36 @@ module TaskSeq =
365365 /// </summary>
366366 val filter : predicate : ( 'T -> bool ) -> source : taskSeq < 'T > -> taskSeq < 'T >
367367
368+ /// <summary>
369+ /// Yields items from the source while the <paramref name="predicate" /> function returns <see cref="true" />.
370+ /// The first <see cref="false" /> result concludes consumption of the source.
371+ /// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.takeWhileAsync" />.
372+ /// </summary>
373+ val takeWhile : predicate : ( 'T -> bool ) -> source : taskSeq < 'T > -> taskSeq < 'T >
374+
375+ /// <summary>
376+ /// Yields items from the source while the <paramref name="predicate" /> asynchronous function returns <see cref="true" />.
377+ /// The first <see cref="false" /> result concludes consumption of the source.
378+ /// If <paramref name="predicate" /> does not need to be asynchronous, consider using <see cref="TaskSeq.takeWhile" />.
379+ /// </summary>
380+ val takeWhileAsync : predicate : ( 'T -> #Task < bool >) -> source : taskSeq < 'T > -> taskSeq < 'T >
381+
382+ /// <summary>
383+ /// Yields items from the source while the <paramref name="predicate" /> function returns <see cref="true" />.
384+ /// The first <see cref="false" /> result concludes consumption of the source, but is included in the result.
385+ /// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.takeWhileInclusiveAsync" />.
386+ /// If the final item is not desired, consider using <see cref="TaskSeq.takeWhile" />.
387+ /// </summary>
388+ val takeWhileInclusive : predicate : ( 'T -> bool ) -> source : taskSeq < 'T > -> taskSeq < 'T >
389+
390+ /// <summary>
391+ /// Yields items from the source while the <paramref name="predicate" /> asynchronous function returns <see cref="true" />.
392+ /// The first <see cref="false" /> result concludes consumption of the source, but is included in the result.
393+ /// If <paramref name="predicate" /> does not need to be asynchronous, consider using <see cref="TaskSeq.takeWhileInclusive" />.
394+ /// If the final item is not desired, consider using <see cref="TaskSeq.takeWhileAsync" />.
395+ /// </summary>
396+ val takeWhileInclusiveAsync : predicate : ( 'T -> #Task < bool >) -> source : taskSeq < 'T > -> taskSeq < 'T >
397+
368398 /// <summary>
369399 /// Returns a new collection containing only the elements of the collection
370400 /// for which the given asynchronous function <paramref name="predicate" /> returns <see cref="true" />.
0 commit comments