Added comments to new getWatchCounts function

This commit is contained in:
amaurer
2018-10-06 10:23:16 -04:00
parent bd3f101ab8
commit c833b4f494

View File

@@ -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);
} }