@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
18 lines (17 loc) • 986 B
TypeScript
import { OperatorFunction } from 'rxjs';
/**
* 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.
* @template T The type of items in the observable stream.
* @returns An OperatorFunction<T, T> that maintains the stream's data type and performs
* the side effect of executing cached emit functions.
*/
export declare function emitCache<T>(): OperatorFunction<T, T>;