Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/builder / Function

emitCache

Generic types:T

Creates an RxJS operator that triggers the execution of cached emit functions. This operator is designed to be used in an RxJS pipeline where caching mechanisms are in place to temporarily store emit functions. Upon invocation, it iterates over the PENDING_CACHE, executing each cached emit function.

The PENDING_CACHE is expected to be a collection (e.g., array) of functions that are intended to be executed to emit values or perform actions that were deferred.

This operator does not alter the stream's data directly but performs side effects (the execution of emit functions) that may influence the application's state or behavior.

Presentation

function emitCache(): OperatorFunction<T, T>;

Returns

OperatorFunction<T, T> -

An OperatorFunction<T, T> that maintains the stream's data type and performs the side effect of executing cached emit functions.