Table of Contents

Class SequenceExtensions

Namespace
MarymoorStudios.Core.Rpc
Assembly
MarymoorStudios.Core.Rpc.dll

Provides convenience extensions for Sequence<T> and its related classes.

public static class SequenceExtensions
Inheritance
SequenceExtensions
Inherited Members

Methods

AsSequence<T>(IEnumerable<T>, int, int, Exception?)

Returns a Sequence<T> over a finite collection.

public static Sequence<T> AsSequence<T>(this IEnumerable<T> collection, int capacity = 100, int batchSize = 20, Exception? error = null)

Parameters

collection IEnumerable<T>

The collection.

capacity int

The maximum number of items before backpressure is applied.

batchSize int

The reader suggested batch size.

error Exception

An optional error to terminate the sequence with.

Returns

Sequence<T>

Type Parameters

T