Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/FSharp.Control.AsyncSeq/AsyncSeq.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1700,8 +1700,9 @@ module AsyncSeq =

/// Merges all specified async sequences into an async sequence non-deterministically.
// By moving the last emitted task to the end of the array, this algorithm achieves max-min fairness when merging AsyncSeqs
let mergeAll (ss:AsyncSeq<'T> list) : AsyncSeq<'T> =
let mergeAll (ss:seq<AsyncSeq<'T>>) : AsyncSeq<'T> =
asyncSeq {
let ss = Seq.toArray ss
let n = ss.Length

let moveToEnd i (a: 'a[]) =
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp.Control.AsyncSeq/AsyncSeq.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ module AsyncSeq =

/// Merges all specified async sequences into an async sequence non-deterministically.
/// The resulting async sequence produces elements when any argument sequence produces an element.
val mergeAll : sources:AsyncSeq<'T> list -> AsyncSeq<'T>
val mergeAll : sources:seq<AsyncSeq<'T>> -> AsyncSeq<'T>
#endif

/// Returns an async sequence which contains no contiguous duplicate elements based on the specified comparison function.
Expand Down