From c833b4f49448dacade229f9af4530020dc30a57a Mon Sep 17 00:00:00 2001 From: amaurer Date: Sat, 6 Oct 2018 10:23:16 -0400 Subject: Added comments to new getWatchCounts function --- packages/order-watcher/src/order_watcher/order_watcher.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/order-watcher/src') diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts index 9b2999285..ac811a4c4 100644 --- a/packages/order-watcher/src/order_watcher/order_watcher.ts +++ b/packages/order-watcher/src/order_watcher/order_watcher.ts @@ -213,6 +213,10 @@ export class OrderWatcher { this._expirationWatcher.unsubscribe(); intervalUtils.clearAsyncExcludingInterval(this._cleanupJobIntervalIdIfExists); } + /** + * Gets number of orderHashes currently being watched by the order watcher instance. + * @returns {number} + */ public getWatchCount(): number { return _.size(this._orderByOrderHash); } -- cgit v1.2.3