mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-23 23:11:12 -04:00
update to monero-ts v0.9.2 with typescript
This commit is contained in:
parent
c6eb746e86
commit
90f59155e1
11 changed files with 365 additions and 345 deletions
2
dist/utils/TaskLooper.js
vendored
2
dist/utils/TaskLooper.js
vendored
|
@ -20,6 +20,8 @@ class TaskLooper {
|
|||
* @param {int} periodInMs the loop period in milliseconds
|
||||
*/
|
||||
start(periodInMs) {
|
||||
if (periodInMs <= 0)
|
||||
throw new Error("Looper period must be greater than 0 ms");
|
||||
if (this._isStarted)
|
||||
return;
|
||||
this._isStarted = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue