cyclejs/cycle-core

View on GitHub
time/src/throttle.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function makeThrottle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeThrottle(createOperator: () => OperatorArgs<any>) {
  const {schedule, currentTime} = createOperator();

  return function throttle(period: number) {
    return function throttleOperator<T>(inputStream: Stream<T>): Stream<T> {
Severity: Minor
Found in time/src/throttle.ts - About 1 hr to fix

    Function makeThrottleListener has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      schedule: any,
      currentTime: () => number,
      period: number,
      listener: Listener<any>,
      state: any
    Severity: Minor
    Found in time/src/throttle.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status