Skip to content

Latest commit

 

History

History
59 lines (31 loc) · 770 Bytes

Throttle.md

File metadata and controls

59 lines (31 loc) · 770 Bytes

Throttle

class Throttle

import Throttle from 'ex-stream/Throttle';

Throttles stream data

import Throttle from 'ex-stream/Throttle';

 class DelayThrottle extends Throttle {
   _throttling(data, next) {
     setTimeout(1000, next);
   }
 }

Constructor

Parameters:

  • options: *

Class is abstract


Methods

_throttling(data: any)

Throttle stream data

Parameters:

  • data: any