Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DebugWatchSource

Hierarchy

  • TreeSource
    • DebugWatchSource

Index

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional options: TreeSourceOptions

    Returns DebugWatchSource

Properties

refresh: ((...arguments: []) => Promise<void>) = ...

Type declaration

    • (...arguments: []): Promise<void>
    • Debounce promise-returning & async functions.

      example
      import pDebounce = require('p-debounce');

      const expensiveCall = async input => input;

      const debouncedFn = pDebounce(expensiveCall, 200);

      for (const i of [1, 2, 3]) {
      debouncedFn(i).then(console.log);
      }
      //=> 3
      //=> 3
      //=> 3

      Parameters

      • Rest ...arguments: []

      Returns Promise<void>

      A function that delays calling fn until after wait milliseconds have elapsed since the last time it was called.

Methods

  • init(): void