new Pump()
- Source:
Methods
numberPumped() → {number}
Return the total number of items pumped by this pump.
- Source:
Returns:
- Type
- number
setWriteQueueMaxSize(maxSize) → {Pump}
Set the write queue max size to
maxSize
Parameters:
Name | Type | Description |
---|---|---|
maxSize |
number | the max size |
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Pump
start() → {Pump}
Start the Pump. The Pump can be started and stopped multiple times.
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Pump
stop() → {Pump}
Stop the Pump. The Pump can be started and stopped multiple times.
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Pump