aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authoramaurer <git@maurer.me>2018-10-06 22:23:16 +0800
committeramaurer <git@maurer.me>2018-10-06 22:23:16 +0800
commitc833b4f49448dacade229f9af4530020dc30a57a (patch)
tree8bb3334f130d739f99743515da728264c6f4a90d /packages
parentbd3f101ab8735f97646d1031126fb9e55b67a93d (diff)
downloaddexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar.gz
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar.bz2
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar.lz
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar.xz
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.tar.zst
dexon-sol-tools-c833b4f49448dacade229f9af4530020dc30a57a.zip
Added comments to new getWatchCounts function
Diffstat (limited to 'packages')
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts4
1 files changed, 4 insertions, 0 deletions
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);
}