Added comments to new getWatchCounts function
This commit is contained in:
parent
bd3f101ab8
commit
c833b4f494
@ -213,6 +213,10 @@ export class OrderWatcher {
|
|||||||
this._expirationWatcher.unsubscribe();
|
this._expirationWatcher.unsubscribe();
|
||||||
intervalUtils.clearAsyncExcludingInterval(this._cleanupJobIntervalIdIfExists);
|
intervalUtils.clearAsyncExcludingInterval(this._cleanupJobIntervalIdIfExists);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Gets number of orderHashes currently being watched by the order watcher instance.
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
public getWatchCount(): number {
|
public getWatchCount(): number {
|
||||||
return _.size(this._orderByOrderHash);
|
return _.size(this._orderByOrderHash);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user