Added comments to new getWatchCounts function
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user