Skip to content

tyneq


tyneq / TyneqCachedTerminalOperator

Abstract Class: TyneqCachedTerminalOperator<TSource, TResult>

Defined in: src/core/terminal/TyneqCachedTerminalOperator.ts:16

Abstract base for terminal operators that require a fully cached sequence.

Remarks

Use this when your terminal operator needs access to cached-sequence members (the internal cache, refresh(), etc.). Register with @cachedTerminal or createCachedTerminalOperator.

Type Parameters

Type ParameterDefault typeDescription
TSource-Element type of the source sequence.
TResultTSourceThe return type of process().

Constructors

Constructor

new TyneqCachedTerminalOperator<TSource, TResult>(source): TyneqCachedTerminalOperator<TSource, TResult>

Defined in: src/core/terminal/TyneqCachedTerminalOperator.ts:19

Parameters

ParameterType
sourceCachedEnumerable<TSource>

Returns

TyneqCachedTerminalOperator<TSource, TResult>

Properties

PropertyModifierTypeDefined in
sourcereadonlyCachedEnumerable<TSource>src/core/terminal/TyneqCachedTerminalOperator.ts:17

Methods

process()

abstract process(): TResult

Defined in: src/core/terminal/TyneqCachedTerminalOperator.ts:25

Executes the terminal operation and returns the result.

Returns

TResult