time/src/throttle.ts
Function makeThrottle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeThrottle(createOperator: () => OperatorArgs<any>) {
const {schedule, currentTime} = createOperator();
return function throttle(period: number) {
return function throttleOperator<T>(inputStream: Stream<T>): Stream<T> {
Function makeThrottleListener
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
schedule: any,
currentTime: () => number,
period: number,
listener: Listener<any>,
state: any