Type | Description |
Function or value | Description |
|
Yields all elements of the first asynchronous sequence and then all elements of the second asynchronous sequence.
|
|
Buffer items from the async sequence into buffers of a specified size. The last buffer returned may be less than the specified buffer size.
|
|
Buffer items from the async sequence until a specified buffer size is reached or a specified amount of time is elapsed.
|
|
Buffers items from the async sequence by the specified time interval. If no items are received in an intervel and empty array is emitted.
|
|
Create a new asynchronous sequence that caches all elements of the sequence specified as the input. When accessing the resulting sequence multiple times, the input will still be evaluated only once
|
|
Asynchronously iterates over the input sequence and generates 'x' for every input element for which the specified function returned 'Some(x)'
|
|
Asynchronously iterates over the input sequence and generates 'x' for every input element for which the specified asynchronous function returned 'Some(x)' The specified function is asynchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
Creates an asynchronous sequence that iterates over the given input sequence. For every input element, it calls the the specified function and iterates over all elements generated by that asynchronous sequence. This is the 'bind' operation of the computation expression (exposed using the 'for' keyword in asyncSeq computation).
|
|
Merges two async sequences. The resulting async sequence produces an element when either input sequence produces an element, passing the new element from the emitting sequence and the previously emitted element from the other sequence. If either of the input sequences is empty, the resulting sequence is empty.
|
|
Merges two async sequences using the specified combine function. The resulting async sequence produces an element when either input sequence produces an element, passing the new element from the emitting sequence and the previously emitted element from the other sequence. If either of the input sequences is empty, the resulting sequence is empty.
|
|
Merges two async sequences using the specified combine function. The resulting async sequence produces an element when either input sequence produces an element, passing the new element from the emitting sequence and the previously emitted element from the other sequence. If either of the input sequences is empty, the resulting sequence is empty.
|
|
|
|
|
|
|
|
|
|
Returns an async sequence which contains no contiguous duplicate elements based on the specified comparison function.
|
|
Returns an async sequence which contains no contiguous duplicate elements based on the specified comparison function.
|
|
|
|
|
|
Same as AsyncSeq.filterAsync, but the specified predicate is synchronous and processes the input element immediately.
|
|
Builds a new asynchronous sequence whose elements are those from the input sequence for which the specified function returned true. The specified function is asynchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
Asynchronously returns the first element that was generated by the given asynchronous sequence (or the specified default value).
|
|
Asynchronously aggregate the elements of the input asynchronous sequence using the specified 'aggregation' function.
|
|
Asynchronously aggregate the elements of the input asynchronous sequence using the specified asynchronous 'aggregation' function.
|
|
|
|
Applies a key-generating function to each element and returns an async sequence containing unique keys and async sequences containing elements corresponding to the key. Note that the resulting async sequence has to be processed in parallel (e.g AsyncSeq.mapAsyncParallel) becaused completion of sub-sequences depends on completion of other sub-sequences.
|
|
Applies a key-generating function to each element and returns an async sequence containing unique keys and async sequences containing elements corresponding to the key. Note that the resulting async sequence has to be processed in parallel (e.g AsyncSeq.mapAsyncParallel) becaused completion of sub-sequences depends on completion of other sub-sequences. |
|
Return an asynchronous sequence which, when iterated, includes an integer indicating the index of each element in the sequence.
|
Full Usage:
AsyncSeq.init count mapping
Parameters:
int64
mapping : int64 -> 'T
Returns: AsyncSeq<'T>
|
|
|
|
|
|
|
|
|
Interleaves two async sequences of the same type into a resulting sequence. The provided sequences are consumed in lock-step.
|
|
|
|
|
|
|
|
Iterates over the input sequence and calls the specified asynchronous function for every value. The input sequence will be asked for the next element after the processing of an element completes.
|
|
Iterates over the input sequence and calls the specified asynchronous function for every value. Each action computation is started but not awaited before consuming the next item from the sequence, thereby iterating in parallel.
|
Iterates over the input sequence and calls the specified asynchronous function for every value. Each action computation is started but not awaited before consuming the next item from the sequence, thereby iterating in parallel with a specified degree of parallelism.
|
|
|
Iterates over the input sequence and calls the specified asynchronous function for every value, passing along the index of that element. The input sequence will be asked for the next element after the processing of an element completes.
|
|
Asynchronously returns the last element that was generated by the given asynchronous sequence (or the specified default value).
|
|
|
|
|
|
Builds a new asynchronous sequence whose elements are generated by applying the specified function to all elements of the input sequence. The specified function is asynchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
Builds a new asynchronous sequence whose elements are generated by applying the specified function to all elements of the input sequence. The function is applied to elements in order and results are emitted in order, but in parallel, without waiting for a prior mapping operation to complete. Parallelism is bound by the ThreadPool.
|
|
Builds a new asynchronous sequence whose elements are generated by applying the specified function to all elements of the input sequence. The specified function is synchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
Builds a new asynchronous sequence whose elements are generated by applying the specified function to all elements of the input sequence. The specified function is asynchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
Merges two async sequences of the same type into an async sequence non-deterministically. The resulting async sequence produces elements when any argument sequence produces an element.
|
|
Merges all specified async sequences into an async sequence non-deterministically. The resulting async sequence produces elements when any argument sequence produces an element.
|
|
|
Full Usage:
AsyncSeq.ofAsyncEnum source
Parameters:
IAsyncEnumerable<'T>
Returns: AsyncSeq<'T>
|
Creates an asynchronous computation that asynchronously yields results from the provided .NET IAsyncEnumerable.
|
|
|
Full Usage:
AsyncSeq.ofObservableBuffered source
Parameters:
IObservable<'T>
Returns: AsyncSeq<'T>
|
Converts observable to an asynchronous sequence. Values that are produced by the observable while the asynchronous sequence is blocked are stored to an unbounded buffer and are returned as next elements of the async sequence.
|
|
Creates an asynchronous sequence that lazily takes element from an input synchronous sequence and returns them one-by-one.
|
|
Creates an asynchronous sequence that lazily takes element from an input synchronous sequence of asynchronous computation and returns them one-by-one.
|
|
Returns an asynchronous sequence that returns pairs containing an element from the input sequence and its predecessor. Empty sequence is returned for singleton input sequence.
|
|
Asynchronously pick a value from a sequence based on the specified chooser function. Raises KeyNotFoundException if the chooser function can't find a matching key.
|
|
Asynchronously pick a value from a sequence based on the specified chooser function. Raises KeyNotFoundException if the chooser function can't find a matching key.
|
|
|
|
|
|
|
|
Creates an async sequence given by evaluating the specified async computation until it returns None.
|
|
|
|
Aggregates the elements of the input asynchronous sequence using the specified 'aggregation' function. The result is an asynchronous sequence of intermediate aggregation result. The aggregation function is asynchronous (and the input sequence will be asked for the next element after the processing of an element completes).
|
|
|
|
Skips the first N elements of an asynchronous sequence and then returns the rest of the sequence unmodified.
|
|
|
|
Skips elements from an asynchronous sequence while the specified predicate holds and then returns the rest of the sequence. The predicate is evaluated asynchronously.
|
|
Skips elements from an asynchronous sequence while the specified predicate holds and then returns the rest of the sequence. The predicate is evaluated asynchronously.
|
|
Yields a sequence ordered by keys. This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences.
|
Full Usage:
AsyncSeq.sortBy projection source
Parameters:
'T -> 'Key
source : AsyncSeq<'T>
Returns: 'T array
|
Applies a key-generating function to each element of an AsyncSeq and yield an array ordered by keys. This function returns an array that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences.
|
Full Usage:
AsyncSeq.sortByDescending projection source
Parameters:
'T -> 'Key
source : AsyncSeq<'T>
Returns: 'T array
|
Applies a key-generating function to each element of an AsyncSeq and yield an array ordered descending by keys. This function returns an array that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences.
|
|
Yields an array ordered descending by keys. This function returns an array that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences.
|
|
|
|
Returns the first N elements of an asynchronous sequence does not cast an exception if count is larger than the sequence length.
|
|
Returns elements from the argument async sequence until the specified signal completes or the sequences completes.
|
|
Returns elements from an asynchronous sequence while the specified predicate holds. The predicate is evaluated synchronously.
|
|
Returns elements from an asynchronous sequence while the specified predicate holds. The predicate is evaluated asynchronously.
|
|
Returns elements from an asynchronous sequence while the specified predicate holds. The predicate is evaluated synchronously. Does return the first element that predicate fails
|
|
|
|
|
|
|
Full Usage:
AsyncSeq.toAsyncEnum source
Parameters:
AsyncSeq<'T>
Returns: IAsyncEnumerable<'T>
|
|
|
Converts asynchronous sequence to a synchronous blocking sequence. The elements of the asynchronous sequence are consumed lazily.
|
|
|
|
|
|
Converts asynchronous sequence to an IObservable<_>. When the client subscribes to the observable, a new copy of asynchronous sequence is started and is sequentially iterated over (at the maximal possible speed). Disposing of the observer cancels the iteration over asynchronous sequence.
|
|
|
|
|
|
|
|
Asynchronously returns the first element that was generated by the given asynchronous sequence (or None if the sequence is empty).
|
|
Asynchronously returns the last element that was generated by the given asynchronous sequence (or None if the sequence is empty).
|
|
|
|
|
Full Usage:
AsyncSeq.unfold generator state
Parameters:
'State -> ('T * 'State) option
state : 'State
Returns: AsyncSeq<'T>
|
|
|
|
|
|
|
|
|
Combines two asynchronous sequences into a sequence of pairs. The resulting sequence stops when either of the argument sequences stop.
|
|
Combines two asynchronous sequences into a sequence of pairs. The values from sequences are retrieved in parallel. The resulting sequence stops when either of the argument sequences stop.
|
|
Combines two asynchronous sequences using the specified function. The resulting sequence stops when either of the argument sequences stop.
|
|
Combines two asynchronous sequences using the specified function. The resulting sequence stops when either of the argument sequences stop.
|
|
Combines two asynchronous sequences using the specified function. The values from sequences are retrieved in parallel. The resulting sequence stops when either of the argument sequences stop.
|
|
Combines two asynchronous sequences using the specified function. The values from sequences are retrieved in parallel. The resulting sequence stops when either of the argument sequences stop.
|