diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-10 03:39:36 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-10 03:39:36 +0800 |
commit | cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c (patch) | |
tree | 7f59b73ca8f436e94fcb872eced183b95c25e0b3 /packages/instant/src/util/heartbeater.ts | |
parent | 36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed (diff) | |
download | dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.gz dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.bz2 dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.lz dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.xz dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.zst dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.zip |
Linting and renaming variables
Diffstat (limited to 'packages/instant/src/util/heartbeater.ts')
-rw-r--r-- | packages/instant/src/util/heartbeater.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/instant/src/util/heartbeater.ts b/packages/instant/src/util/heartbeater.ts index 87af48423..a5b42d87f 100644 --- a/packages/instant/src/util/heartbeater.ts +++ b/packages/instant/src/util/heartbeater.ts @@ -4,8 +4,8 @@ type HeartbeatableFunction = () => Promise<void>; export class Heartbeater { private _intervalId?: number; private _hasPendingRequest: boolean; - private _performImmediatelyOnStart: boolean; - private _performFunction: HeartbeatableFunction; + private readonly _performImmediatelyOnStart: boolean; + private readonly _performFunction: HeartbeatableFunction; public constructor(performingFunctionAsync: HeartbeatableFunction, performImmediatelyOnStart: boolean) { this._performFunction = performingFunctionAsync; @@ -19,6 +19,7 @@ export class Heartbeater { } if (this._performImmediatelyOnStart) { + // tslint:disable-next-line:no-floating-promises this._trackAndPerformAsync(); } |