-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTaskSeq.fsi
More file actions
1902 lines (1752 loc) · 120 KB
/
TaskSeq.fsi
File metadata and controls
1902 lines (1752 loc) · 120 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace FSharp.Control
open System.Collections.Generic
open System.Threading.Tasks
[<AutoOpen>]
module TaskSeqExtensions =
module TaskSeq =
/// Initialize an empty task sequence.
val empty<'T> : TaskSeq<'T>
/// <summary>
/// Returns the sum of all elements of the task sequence. The elements must support the <c>+</c> operator,
/// which is the case for all built-in numeric types. For sequences with a projection, use <see cref="TaskSeq.sumBy" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The sum of all elements in the sequence, starting from <c>Unchecked.defaultof</c> as zero.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
val inline sum: source: TaskSeq< ^T > -> Task< ^T > when ^T: (static member (+): ^T * ^T -> ^T)
/// <summary>
/// Returns the sum of the results generated by applying the <paramref name="projection" /> function to each element
/// of the task sequence. The result type must support the <c>+</c> operator, which is the case for all built-in numeric types.
/// If <paramref name="projection" /> is asynchronous, consider using <see cref="TaskSeq.sumByAsync" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into summable values.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The sum of the projected values.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
val inline sumBy:
projection: ('T -> ^U) -> source: TaskSeq<'T> -> Task< ^U > when ^U: (static member (+): ^U * ^U -> ^U)
/// <summary>
/// Returns the sum of the results generated by applying the asynchronous <paramref name="projection" /> function to
/// each element of the task sequence. The result type must support the <c>+</c> operator, which is the case for all
/// built-in numeric types.
/// If <paramref name="projection" /> is synchronous, consider using <see cref="TaskSeq.sumBy" />.
/// </summary>
///
/// <param name="projection">An async function to transform items from the input sequence into summable values.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The sum of the projected values.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
val inline sumByAsync:
projection: ('T -> Task< ^U >) -> source: TaskSeq<'T> -> Task< ^U >
when ^U: (static member (+): ^U * ^U -> ^U)
/// <summary>
/// Returns the average of all elements of the task sequence. The elements must support the <c>+</c> operator
/// and <c>DivideByInt</c>, which is the case for all built-in F# floating-point types.
/// For sequences with a projection, consider using <see cref="TaskSeq.averageBy" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The average of the elements in the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence is empty.</exception>
val inline average:
source: TaskSeq< ^T > -> Task< ^T >
when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member DivideByInt: ^T * int -> ^T)
/// <summary>
/// Returns the average of the results generated by applying the <paramref name="projection" /> function to each element
/// of the task sequence. The result type must support the <c>+</c> operator and <c>DivideByInt</c>, which is the case
/// for all built-in F# floating-point types.
/// If <paramref name="projection" /> is asynchronous, consider using <see cref="TaskSeq.averageByAsync" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into averageable values.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The average of the projected values.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence is empty.</exception>
val inline averageBy:
projection: ('T -> ^U) -> source: TaskSeq<'T> -> Task< ^U >
when ^U: (static member (+): ^U * ^U -> ^U) and ^U: (static member DivideByInt: ^U * int -> ^U)
/// <summary>
/// Returns the average of the results generated by applying the asynchronous <paramref name="projection" /> function to
/// each element of the task sequence. The result type must support the <c>+</c> operator and <c>DivideByInt</c>, which
/// is the case for all built-in F# floating-point types.
/// If <paramref name="projection" /> is synchronous, consider using <see cref="TaskSeq.averageBy" />.
/// </summary>
///
/// <param name="projection">An async function to transform items from the input sequence into averageable values.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The average of the projected values.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence is empty.</exception>
val inline averageByAsync:
projection: ('T -> Task< ^U >) -> source: TaskSeq<'T> -> Task< ^U >
when ^U: (static member (+): ^U * ^U -> ^U) and ^U: (static member DivideByInt: ^U * int -> ^U)
[<Sealed; AbstractClass>]
type TaskSeq =
/// <summary>
/// Creates a task sequence from <paramref name="value" /> that generates a single element and then ends.
/// </summary>
///
/// <param name="value">The input item to use as the single item of the task sequence.</param>
static member singleton: value: 'T -> TaskSeq<'T>
/// <summary>
/// Creates a task sequence by replicating <paramref name="value" /> a total of <paramref name="count" /> times.
/// </summary>
///
/// <param name="count">The number of times to replicate the value.</param>
/// <param name="value">The value to replicate.</param>
/// <returns>A task sequence containing <paramref name="count" /> copies of <paramref name="value" />.</returns>
/// <exception cref="T:ArgumentException">Thrown when <paramref name="count" /> is negative.</exception>
static member replicate: count: int -> value: 'T -> TaskSeq<'T>
/// <summary>
/// Returns <see cref="true" /> if the task sequence contains no elements, <see cref="false" /> otherwise.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member isEmpty: source: TaskSeq<'T> -> Task<bool>
/// <summary>
/// Returns the length of the sequence. This operation requires the whole sequence to be evaluated and
/// should not be used on potentially infinite sequences, see <see cref="TaskSeq.lengthOrMax" /> for an alternative.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member length: source: TaskSeq<'T> -> Task<int>
/// <summary>
/// Returns the length of the sequence, or <paramref name="max" />, whichever comes first. This operation requires the task sequence
/// to be evaluated ether in full, or until <paramref name="max" /> items have been processed. Use this method instead of
/// <see cref="TaskSeq.length" /> if you need to limit the number of items evaluated, or if the sequence is potentially infinite.
/// </summary>
///
/// <param name="max">Limit at which to stop evaluating source items for finding the length.</param>
/// <param name="source">The input task sequence.</param>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member lengthOrMax: max: int -> source: TaskSeq<'T> -> Task<int>
/// <summary>
/// Returns the length of the sequence of all items for which the <paramref name="predicate" /> returns true.
/// This operation requires the whole sequence to be evaluated and should not be used on potentially infinite sequences.
/// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.lengthByAsync" />.
/// </summary>
///
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the count.</param>
/// <param name="source">The input task sequence.</param>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member lengthBy: predicate: ('T -> bool) -> source: TaskSeq<'T> -> Task<int>
/// <summary>
/// Returns the length of the sequence of all items for which the <paramref name="predicate" /> returns true.
/// This operation requires the whole sequence to be evaluated and should not be used on potentially infinite sequences.
/// If <paramref name="predicate" /> is synchronous, consider using <see cref="TaskSeq.lengthBy" />.
/// </summary>
///
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the count.</param>
/// <param name="source">The input task sequence.</param>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member lengthByAsync: predicate: ('T -> #Task<bool>) -> source: TaskSeq<'T> -> Task<int>
/// <summary>
/// Returns the greatest of all elements of the sequence, compared via <see cref="Operators.max" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The largest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence is empty.</exception>
static member max: source: TaskSeq<'T> -> Task<'T> when 'T: comparison
/// <summary>
/// Returns the smallest of all elements of the sequence, compared via <see cref="Operators.min" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The smallest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence is empty.</exception>
static member min: source: TaskSeq<'T> -> Task<'T> when 'T: comparison
/// <summary>
/// Returns the greatest of all elements of the task sequence, compared via <see cref="Operators.max" />
/// on the result of applying the function <paramref name="projection" /> to each element.
///
/// If <paramref name="projection" /> is asynchronous, consider using <see cref="TaskSeq.maxByAsync" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into comparable keys.</param>
/// <param name="source">The input sequence.</param>
/// <returns>The largest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input sequence is empty.</exception>
static member maxBy: projection: ('T -> 'U) -> source: TaskSeq<'T> -> Task<'T> when 'U: comparison
/// <summary>
/// Returns the smallest of all elements of the task sequence, compared via <see cref="Operators.min" />
/// on the result of applying the function <paramref name="projection" /> to each element.
///
/// If <paramref name="projection" /> is asynchronous, consider using <see cref="TaskSeq.minByAsync" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into comparable keys.</param>
/// <param name="source">The input sequence.</param>
/// <returns>The smallest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input sequence is empty.</exception>
static member minBy: projection: ('T -> 'U) -> source: TaskSeq<'T> -> Task<'T> when 'U: comparison
/// <summary>
/// Returns the greatest of all elements of the task sequence, compared via <see cref="Operators.max" />
/// on the result of applying the function <paramref name="projection" /> to each element.
///
/// If <paramref name="projection" /> is synchronous, consider using <see cref="TaskSeq.maxBy" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into comparable keys.</param>
/// <param name="source">The input sequence.</param>
/// <returns>The largest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input sequence is empty.</exception>
static member maxByAsync: projection: ('T -> #Task<'U>) -> source: TaskSeq<'T> -> Task<'T> when 'U: comparison
/// <summary>
/// Returns the smallest of all elements of the task sequence, compared via <see cref="Operators.min" />
/// on the result of applying the function <paramref name="projection" /> to each element.
///
/// If <paramref name="projection" /> is synchronous, consider using <see cref="TaskSeq.minBy" />.
/// </summary>
///
/// <param name="projection">A function to transform items from the input sequence into comparable keys.</param>
/// <param name="source">The input sequence.</param>
/// <returns>The smallest element of the sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input sequence is empty.</exception>
static member minByAsync: projection: ('T -> #Task<'U>) -> source: TaskSeq<'T> -> Task<'T> when 'U: comparison
/// <summary>
/// Returns a task sequence that is given by the delayed specification of a task sequence.
/// </summary>
///
/// <param name="generator">The generating function for the task sequence.</param>
/// <returns>The generated task sequence.</returns>
static member delay: generator: (unit -> TaskSeq<'T>) -> TaskSeq<'T>
/// <summary>
/// Generates a new task sequence which, when iterated, will return successive elements by calling the given function
/// with the current zero-based index, up to the given count. Each element is saved after its initialization for successive access to
/// <see cref="IAsyncEnumerator.Current" />, which will not re-evaluate the <paramref name="initializer" />. However,
/// re-iterating the returned task sequence will re-evaluate the initialization function. The returned sequence may
/// be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should
/// not be accessed concurrently.
/// </summary>
///
/// <param name="count">The maximum number of items to generate for the sequence.</param>
/// <param name="initializer">A function that generates an item in the sequence from a given index.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:System.ArgumentException">Thrown when count is negative.</exception>
static member init: count: int -> initializer: (int -> 'T) -> TaskSeq<'T>
/// <summary>
/// Generates a new task sequence which, when iterated, will return successive elements by calling the given function
/// with the current zero-based index, up to the given count. Each element is saved after its initialization for successive access to
/// <see cref="IAsyncEnumerator.Current" />, which will not re-evaluate the <paramref name="initializer" />. However,
/// re-iterating the returned task sequence will re-evaluate the initialization function. The returned sequence may
/// be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should
/// not be accessed concurrently.
/// </summary>
///
/// <param name="count">The maximum number of items to generate for the sequence.</param>
/// <param name="initializer">A function that generates an item in the sequence from a given index.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:System.ArgumentException">Thrown when count is negative.</exception>
static member initAsync: count: int -> initializer: (int -> #Task<'T>) -> TaskSeq<'T>
/// <summary>
/// Generates a new task sequence which, when iterated, will return successive elements by calling the given function
/// with the current zero-based index, ad infinitum, or until <see cref="Int32.MaxValue" /> is reached.
/// Each element is saved after its initialization for successive access to
/// <see cref="IAsyncEnumerator.Current" />, which will not re-evaluate the <paramref name="initializer" />. However,
/// re-iterating the returned task sequence will re-evaluate the initialization function. The returned sequence may
/// be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should
/// not be accessed concurrently.
/// </summary>
///
/// <param name="initializer">A function that generates an item in the sequence from a given index.</param>
/// <returns>The resulting task sequence.</returns>
static member initInfinite: initializer: (int -> 'T) -> TaskSeq<'T>
/// <summary>
/// Generates a new task sequence which, when iterated, will return successive elements by calling the given function
/// with the current zero-based index, ad infinitum, or until <see cref="Int32.MaxValue" /> is reached.
/// Each element is saved after its initialization for successive access to
/// <see cref="IAsyncEnumerator.Current" />, which will not re-evaluate the <paramref name="initializer" />. However,
/// re-iterating the returned task sequence will re-evaluate the initialization function. The returned sequence may
/// be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should
/// not be accessed concurrently.
/// </summary>
///
/// <param name="initializer">A function that generates an item in the sequence from a given index.</param>
/// <returns>The resulting task sequence.</returns>
static member initInfiniteAsync: initializer: (int -> #Task<'T>) -> TaskSeq<'T>
/// <summary>
/// Returns a task sequence generated by applying the generator function to a state value, until it returns <c>None</c>.
/// Each call to <paramref name="generator" /> returns either <c>None</c>, which terminates the sequence, or
/// <c>Some(element, newState)</c>, which yields <paramref name="element" /> and updates the state for the next call.
/// Unlike <see cref="TaskSeq.init" />, the number of elements need not be known in advance.
/// If the generator function is asynchronous, consider using <see cref="TaskSeq.unfoldAsync" />.
/// </summary>
///
/// <param name="generator">A function that takes the current state and returns either <c>None</c> to terminate,
/// or <c>Some(element, newState)</c> to yield an element and continue with a new state.</param>
/// <param name="state">The initial state value.</param>
/// <returns>The resulting task sequence.</returns>
static member unfold: generator: ('State -> ('T * 'State) option) -> state: 'State -> TaskSeq<'T>
/// <summary>
/// Returns a task sequence generated by applying the asynchronous generator function to a state value, until it
/// returns <c>None</c>. Each call to <paramref name="generator" /> returns either <c>None</c>, which terminates the
/// sequence, or <c>Some(element, newState)</c>, which yields <paramref name="element" /> and updates the state.
/// Unlike <see cref="TaskSeq.initAsync" />, the number of elements need not be known in advance.
/// If the generator function is synchronous, consider using <see cref="TaskSeq.unfold" />.
/// </summary>
///
/// <param name="generator">An async function that takes the current state and returns either <c>None</c> to terminate,
/// or <c>Some(element, newState)</c> to yield an element and continue with a new state.</param>
/// <param name="state">The initial state value.</param>
/// <returns>The resulting task sequence.</returns>
static member unfoldAsync: generator: ('State -> Task<('T * 'State) option>) -> state: 'State -> TaskSeq<'T>
/// <summary>
/// Combines the given task sequence of task sequences and concatenates them end-to-end, to form a
/// new flattened, single task sequence, like <paramref name="TaskSeq.collect id"/>. Each task sequence is
/// awaited and consumed in full, before the next one is iterated.
/// </summary>
///
/// <param name="sources">The input task-sequence-of-task-sequences.</param>
/// <returns>The resulting, flattened task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence of task sequences is null.</exception>
static member concat: sources: TaskSeq<#TaskSeq<'T>> -> TaskSeq<'T>
/// <summary>
/// Combines the given task sequence of sequences and concatenates them end-to-end, to form a
/// new flattened, single task sequence.
/// </summary>
///
/// <param name="sources">The input task sequence of sequences.</param>
/// <returns>The resulting, flattened task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence of task sequences is null.</exception>
static member concat: sources: TaskSeq<'T seq> -> TaskSeq<'T>
/// <summary>
/// Combines the given task sequence of arrays and concatenates them end-to-end, to form a
/// new flattened, single task sequence.
/// </summary>
///
/// <param name="sources">The input task sequence of arrays.</param>
/// <returns>The resulting, flattened task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence of task sequences is null.</exception>
static member concat: sources: TaskSeq<'T[]> -> TaskSeq<'T>
/// <summary>
/// Combines the given task sequence of lists and concatenates them end-to-end, to form a
/// new flattened, single task sequence.
/// </summary>
///
/// <param name="sources">The input task sequence of lists.</param>
/// <returns>The resulting, flattened task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence of task sequences is null.</exception>
static member concat: sources: TaskSeq<'T list> -> TaskSeq<'T>
/// <summary>
/// Combines the given task sequence of resizable arrays and concatenates them end-to-end, to form a
/// new flattened, single task sequence.
/// </summary>
///
/// <param name="sources">The input task sequence of resizable arrays.</param>
/// <returns>The resulting, flattened task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence of task sequences is null.</exception>
static member concat: sources: TaskSeq<ResizeArray<'T>> -> TaskSeq<'T>
/// <summary>
/// Concatenates task sequences <paramref name="source1" /> and <paramref name="source2" /> in order as a single
/// task sequence.
/// </summary>
///
/// <param name="source1">The first input task sequence.</param>
/// <param name="source2">The second input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when either of the input task sequences is null.</exception>
static member append: source1: TaskSeq<'T> -> source2: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>
/// Concatenates a task sequence <paramref name="source1" /> with a (non-async) F# <see cref="seq" /> in <paramref name="source2" />
/// and returns a single task sequence.
/// </summary>
///
/// <param name="source1">The input task sequence.</param>
/// <param name="source2">The input F# <see cref="seq" /> sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when either of the input sequences is null.</exception>
static member appendSeq: source1: TaskSeq<'T> -> source2: seq<'T> -> TaskSeq<'T>
/// <summary>
/// Concatenates a (non-async) F# <see cref="seq" /> in <paramref name="source1" /> with a task sequence in <paramref name="source2" />
/// and returns a single task sequence.
/// </summary>
///
/// <param name="source1">The input F# <see cref="seq" /> sequence.</param>
/// <param name="source2">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when either of the input sequences is null.</exception>
static member prependSeq: source1: seq<'T> -> source2: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>
/// Builds an F# <see cref="list" /> from the input task sequence in <paramref name="source" />.
/// This function is blocking until the sequence is exhausted and will then properly dispose of the resources.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting list.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toList: source: TaskSeq<'T> -> 'T list
/// <summary>
/// Builds an <see cref="array" /> from the input task sequence in <paramref name="source" />.
/// This function is blocking until the sequence is exhausted and will then properly dispose of the resources.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting array.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toArray: source: TaskSeq<'T> -> 'T[]
/// <summary>
/// Views the task sequence in <paramref name="source" /> as an F# <see cref="seq" />, that is, an
/// <see cref="IEnumerable<_>" />. This function is blocking at each call
/// to <see cref="IEnumerator<_>.MoveNext()" /> in the resulting sequence.
/// Resources are disposed when the enumerator is disposed, or the enumerator is exhausted.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toSeq: source: TaskSeq<'T> -> seq<'T>
/// <summary>
/// Builds an <see cref="array" /> asynchronously from the input task sequence.
/// This function is non-blocking while it builds the array.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting array.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toArrayAsync: source: TaskSeq<'T> -> Task<'T[]>
/// <summary>
/// Builds an F# <see cref="list" /> asynchronously from the input task sequence.
/// This function is non-blocking while it builds the list.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting list.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toListAsync: source: TaskSeq<'T> -> Task<'T list>
/// <summary>
/// Gathers items into a ResizeArray (see <see cref="T:System.Collections.Generic.List<_>" />) asynchronously from the input task sequence.
/// This function is non-blocking while it builds the resizable array.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting resizable array.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toResizeArrayAsync: source: TaskSeq<'T> -> Task<ResizeArray<'T>>
/// <summary>
/// Builds an <see cref="IList<'T>" /> asynchronously from the input task sequence.
/// This function is non-blocking while it builds the IList.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting IList interface.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member toIListAsync: source: TaskSeq<'T> -> Task<IList<'T>>
/// <summary>
/// Views the given <see cref="array" /> as a task sequence, that is, as an <see cref="IAsyncEnumerable<'T>" />.
/// </summary>
///
/// <param name="source">The input array.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input array is null.</exception>
static member ofArray: source: 'T[] -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="list" /> as a task sequence, that is, as an <see cref="IAsyncEnumerable<'T>" />.
/// </summary>
///
/// <param name="source">The input list.</param>
/// <returns>The resulting task sequence.</returns>
static member ofList: source: 'T list -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="seq" /> as a task sequence, that is, as an <see cref="IAsyncEnumerable<'T>" />.
/// </summary>
///
/// <param name="source">The input sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member ofSeq: source: seq<'T> -> TaskSeq<'T>
/// <summary>
/// Views the given resizable array as a task sequence, that is, as an <see cref="IAsyncEnumerable<'T>" />.
/// </summary>
///
/// <param name="source">The input resize array.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input resize array is null.</exception>
static member ofResizeArray: source: ResizeArray<'T> -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="seq" /> of <see cref="Task" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. A sequence of tasks is not the same as a task sequence.
/// Each task in a sequence of tasks can be run individually and potentially out of order, or with
/// overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen.
/// </summary>
///
/// <param name="source">The input sequence-of-tasks.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member ofTaskSeq: source: seq<#Task<'T>> -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="list" /> of <see cref="Task" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. A list of tasks will typically already be hot-started,
/// as a result, each task can already run and potentially out of order, or with
/// overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen. Converting a list of tasks into a task sequence is no guarantee
/// that overlapping side effects are prevented. Safe for side-effect free tasks.
/// </summary>
///
/// <param name="source">The input list-of-tasks.</param>
/// <returns>The resulting task sequence.</returns>
static member ofTaskList: source: #Task<'T> list -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="array" /> of <see cref="Task" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. An array of tasks will typically already be hot-started,
/// as a result, each task can already run and potentially out of order, or with
/// overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen. Converting an array of tasks into a task sequence is no guarantee
/// that overlapping side effects are prevented. Safe for side-effect free tasks.
/// </summary>
///
/// <param name="source">The input array-of-tasks.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input array is null.</exception>
static member ofTaskArray: source: #Task<'T> array -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="seq" /> of <see cref="Async" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. A sequence of asyncs is not the same as a task sequence.
/// Each async computation in a sequence of asyncs can be run individually or in parallel, potentially
/// with overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen.
/// </summary>
///
/// <param name="source">The input sequence-of-asyncs.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member ofAsyncSeq: source: seq<Async<'T>> -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="list" /> of <see cref="Async" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. A list of asyncs is not the same as a task sequence.
/// Each async computation in a list of asyncs can be run individually or in parallel, potentially
/// with overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen.
/// </summary>
///
/// <param name="source">The input list-of-asyncs.</param>
/// <returns>The resulting task sequence.</returns>
static member ofAsyncList: source: Async<'T> list -> TaskSeq<'T>
/// <summary>
/// Views the given <see cref="array" /> of <see cref="Async" />s as a task sequence, that is, as an
/// <see cref="IAsyncEnumerable<'T>" />. An array of asyncs is not the same as a task sequence.
/// Each async computation in an array of asyncs can be run individually or in parallel, potentially
/// with overlapping side effects, while a task sequence forces awaiting between the items in the sequence,
/// preventing such overlap to happen.
/// </summary>
///
/// <param name="source">The input array-of-asyncs.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member ofAsyncArray: source: Async<'T> array -> TaskSeq<'T>
/// <summary>
/// Views each item in the input task sequence as <see cref="obj" />, boxing value types.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member box: source: TaskSeq<'T> -> TaskSeq<obj>
/// <summary>
/// Calls <see cref="unbox" /> on each item when the task sequence is consumed.
/// The target type must be a value type.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="InvalidCastException">Thrown when the function is unable to cast an item to the target type.</exception>
static member unbox<'U when 'U: struct> : source: TaskSeq<obj> -> TaskSeq<'U>
/// <summary>
/// Casts each item in the untyped input task sequence. If the input sequence contains value types
/// it is recommended to consider using <see cref="TaskSeq.unbox" /> instead.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="InvalidCastException">Thrown when the function is unable to cast an item to the target type.</exception>
static member cast: source: TaskSeq<obj> -> TaskSeq<'U>
/// <summary>
/// Iterates over the input task sequence, applying the <paramref name="action" /> function to each item.
/// This function is non-blocking, but will exhaust the full input sequence as soon as the task is evaluated.
/// </summary>
///
/// <param name="action">A function to apply to each element of the task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>A <see cref="unit" /> <see cref="task" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member iter: action: ('T -> unit) -> source: TaskSeq<'T> -> Task<unit>
/// <summary>
/// Iterates over the input task sequence, applying the <paramref name="action" /> function to each item,
/// supplying the zero-based index as extra parameter for the <paramref name="action" /> function.
/// This function is non-blocking, but will exhaust the full input sequence as soon as the task is evaluated.
/// </summary>
///
/// <param name="action">A function to apply to each element of the task sequence that can also access the current index.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>A <see cref="unit" /> <see cref="task" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member iteri: action: (int -> 'T -> unit) -> source: TaskSeq<'T> -> Task<unit>
/// <summary>
/// Iterates over the input task sequence, applying the asynchronous <paramref name="action" /> function to each item.
/// This function is non-blocking, but will exhaust the full input sequence as soon as the task is evaluated.
/// </summary>
///
/// <param name="action">An asynchronous function to apply to each element of the task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>A <see cref="unit" /> <see cref="task" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member iterAsync: action: ('T -> #Task<unit>) -> source: TaskSeq<'T> -> Task<unit>
/// <summary>
/// Iterates over the input task sequence, applying the asynchronous <paramref name="action" /> function to each item,
/// supplying the zero-based index as extra parameter for the <paramref name="action" /> function.
/// This function is non-blocking, but will exhaust the full input sequence as soon as the task is evaluated.
/// </summary>
///
/// <param name="action">An asynchronous function to apply to each element of the task sequence that can also access the current index.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>A <see cref="unit" /> <see cref="task" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input sequence is null.</exception>
static member iteriAsync: action: (int -> 'T -> #Task<unit>) -> source: TaskSeq<'T> -> Task<unit>
/// <summary>
/// Builds a new task sequence whose elements are the corresponding elements of the input task
/// sequence <paramref name="source" /> paired with the integer index (from 0) of each element.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence of tuples.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member indexed: source: TaskSeq<'T> -> TaskSeq<int * 'T>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the <paramref name="mapper" />
/// function to each of the elements of the input task sequence in <paramref name="source" />.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="mapper" /> is asynchronous, consider using <see cref="TaskSeq.mapAsync" />.
/// </summary>
///
/// <param name="mapper">A function to transform items from the input task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member map: mapper: ('T -> 'U) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the <paramref name="mapper" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, passing
/// an extra zero-based index argument to the <paramref name="mapper" /> function.
/// The given function will be applied as elements are pulled using the <see cref="MoveNextAsync" />
/// method on async enumerators retrieved from the input task sequence.
/// Does not evaluate the input sequence until requested.
/// </summary>
///
/// <param name="mapper">A function to transform items from the input task sequence that also access the current index.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member mapi: mapper: (int -> 'T -> 'U) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the asynchronous <paramref name="mapper" />
/// function to each of the elements of the input task sequence in <paramref name="source" />.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="mapper" /> is synchronous, consider using <see cref="TaskSeq.map" />.
/// </summary>
///
/// <param name="mapper">An asynchronous function to transform items from the input task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member mapAsync: mapper: ('T -> #Task<'U>) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the asynchronous <paramref name="mapper" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, passing
/// an extra zero-based index argument to the <paramref name="mapper" /> function.
/// The given function will be applied as elements are pulled using the <see cref="MoveNextAsync" />
/// method on async enumerators retrieved from the input task sequence.
/// Does not evaluate the input sequence until requested.
/// </summary>
///
/// <param name="mapper">An asynchronous function to transform items from the input task sequence that also access the current index.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member mapiAsync: mapper: (int -> 'T -> #Task<'U>) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the <paramref name="binder" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, and concatenating the
/// returned task sequences.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="binder" /> is asynchronous, consider using <see cref="TaskSeq.collectAsync" />.
/// </summary>
///
/// <param name="binder">A function to transform items from the input task sequence into a task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting concatenation of all returned task sequences.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member collect: binder: ('T -> #TaskSeq<'U>) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the <paramref name="binder" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, and concatenating the
/// returned regular F# sequences.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="binder" /> is asynchronous, consider using <see cref="TaskSeq.collectSeqAsync" />.
/// </summary>
///
/// <param name="binder">A function to transform items from the input task sequence into a regular sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting concatenation of all returned task sequences.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member collectSeq: binder: ('T -> #seq<'U>) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the asynchronous <paramref name="binder" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, and concatenating the
/// returned task sequences.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="binder" /> is synchronous, consider using <see cref="TaskSeq.collect" />.
/// </summary>
///
/// <param name="binder">An asynchronous function to transform items from the input task sequence into a task sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting concatenation of all returned task sequences.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member collectAsync:
binder: ('T -> #Task<'TSeqU>) -> source: TaskSeq<'T> -> TaskSeq<'U> when 'TSeqU :> TaskSeq<'U>
/// <summary>
/// Builds a new task sequence whose elements are the results of applying the asynchronous <paramref name="binder" />
/// function to each of the elements of the input task sequence in <paramref name="source" />, and concatenating the
/// returned regular F# sequences.
/// The given function will be applied as elements are pulled using async enumerators retrieved from the
/// input task sequence.
///
/// If <paramref name="binder" /> is synchronous, consider using <see cref="TaskSeq.collectSeqAsync" />.
/// </summary>
///
/// <param name="binder">An asynchronous function to transform items from the input task sequence into a regular sequence.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting concatenation of all returned task sequences.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member collectSeqAsync:
binder: ('T -> #Task<'SeqU>) -> source: TaskSeq<'T> -> TaskSeq<'U> when 'SeqU :> seq<'U>
/// <summary>
/// Returns the first element of the input task sequence given by <paramref name="source" />,
/// or <see cref="None" /> if the sequence is empty.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The first element of the task sequence, or <see cref="None" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member tryHead: source: TaskSeq<'T> -> Task<'T option>
/// <summary>
/// Returns the first element of the input task sequence given by <paramref name="source" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The first element of the task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the task sequence is empty.</exception>
static member head: source: TaskSeq<'T> -> Task<'T>
/// <summary>
/// Returns the whole input task sequence given by <paramref name="source" />, minus its first element,
/// or <see cref="None" /> if the sequence is empty.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The input task sequence minus the first element, or <see cref="None" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member tryTail: source: TaskSeq<'T> -> Task<TaskSeq<'T> option>
/// <summary>
/// Returns the whole task sequence from <paramref name="source" />, minus its first element.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The input task sequence minus the first element.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the task sequence is empty.</exception>
static member tail: source: TaskSeq<'T> -> Task<TaskSeq<'T>>
/// <summary>
/// Returns the last element of the input task sequence given by <paramref name="source" />,
/// or <see cref="None" /> if the sequence is empty.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The last element of the task sequence, or None.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member tryLast: source: TaskSeq<'T> -> Task<'T option>
/// <summary>
/// Returns the last element of the input task sequence given by <paramref name="source" />.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The last element of the task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the task sequence is empty.</exception>
static member last: source: TaskSeq<'T> -> Task<'T>
/// <summary>
/// Returns the nth element of the input task sequence given by <paramref name="source" />,
/// or <see cref="None" /> if the sequence does not contain enough elements.
/// The index is zero-based, that is, using index 0 returns the first element.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <param name="index">The index of the item to retrieve.</param>
/// <returns>The nth element of the task sequence, or None if it doesn't exist.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member tryItem: index: int -> source: TaskSeq<'T> -> Task<'T option>
/// <summary>
/// Returns the nth element of the input task sequence given by <paramref name="source" />,
/// or raises an exception if the sequence does not contain enough elements.
/// The index is zero-based, that is, using index 0 returns the first element.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <param name="index">The index of the item to retrieve.</param>
/// <returns>The nth element of the task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the sequence has insufficient length or <paramref name="index" /> is negative.</exception>
static member item: index: int -> source: TaskSeq<'T> -> Task<'T>
/// <summary>
/// Returns the only element of the task sequence, or <see cref="None" /> if the sequence is empty of
/// contains more than one element.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The only element of the singleton task sequence, or <see cref="None" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member tryExactlyOne: source: TaskSeq<'T> -> Task<'T option>
/// <summary>
/// Returns the only element of the task sequence.
/// </summary>
///
/// <param name="source">The input task sequence.</param>
/// <returns>The only element of the singleton task sequence, or <see cref="None" />.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
/// <exception cref="T:ArgumentException">Thrown when the input task sequence does not contain precisely one element.</exception>
static member exactlyOne: source: TaskSeq<'T> -> Task<'T>
/// <summary>
/// Applies the given function <paramref name="chooser" /> to each element of the task sequence. Returns
/// a sequence comprised of the results where the function returns <see cref="Some(x)" />.
/// If <paramref name="chooser" /> is asynchronous, consider using <see cref="TaskSeq.chooseAsync" />.
/// </summary>
///
/// <param name="chooser">A function to transform items of type <paramref name="'T" /> into options of type <paramref name="'U" />.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member choose: chooser: ('T -> 'U option) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Applies the given asynchronous function <paramref name="chooser" /> to each element of the task sequence.
/// Returns a sequence comprised of the results where the function returns a <see cref="task" /> result
/// of <see cref="Some(x)" />.
/// If <paramref name="chooser" /> is synchronous, consider using <see cref="TaskSeq.choose" />.
/// </summary>
///
/// <param name="chooser">An asynchronous function to transform items of type <paramref name="'T" /> into options of type <paramref name="'U" />.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member chooseAsync: chooser: ('T -> #Task<'U option>) -> source: TaskSeq<'T> -> TaskSeq<'U>
/// <summary>
/// Returns a new task sequence containing only the elements of the collection
/// for which the given function <paramref name="predicate" /> returns <see cref="true" />.
/// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.filterAsync" />.
/// </summary>
///
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the output or not.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member filter: predicate: ('T -> bool) -> source: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>
/// Returns a new task sequence containing only the elements of the input sequence
/// for which the given function <paramref name="predicate" /> returns <see cref="true" />.
/// If <paramref name="predicate" /> is synchronous, consider using <see cref="TaskSeq.filter" />.
/// </summary>
///
/// <param name="predicate">An asynchronous function to test whether an item in the input sequence should be included in the output or not.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member filterAsync: predicate: ('T -> #Task<bool>) -> source: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>
/// Returns a new task sequence containing only the elements of the collection
/// for which the given function <paramref name="predicate" /> returns <see cref="true" />.
/// If <paramref name="predicate" /> is asynchronous, consider using <see cref="TaskSeq.whereAsync" />.
///
/// Alias for <see cref="TaskSeq.filter" />.
/// </summary>
///
/// <param name="predicate">A function to test whether an item in the input sequence should be included in the output or not.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member where: predicate: ('T -> bool) -> source: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>
/// Returns a new task sequence containing only the elements of the input sequence
/// for which the given function <paramref name="predicate" /> returns <see cref="true" />.
/// If <paramref name="predicate" /> is synchronous, consider using <see cref="TaskSeq.where" />.
///
/// Alias for <see cref="TaskSeq.filterAsync" />.
/// </summary>
///
/// <param name="predicate">An asynchronous function to test whether an item in the input sequence should be included in the output or not.</param>
/// <param name="source">The input task sequence.</param>
/// <returns>The resulting task sequence.</returns>
/// <exception cref="T:ArgumentNullException">Thrown when the input task sequence is null.</exception>
static member whereAsync: predicate: ('T -> #Task<bool>) -> source: TaskSeq<'T> -> TaskSeq<'T>
/// <summary>