This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const minDelay = 1000; // it will be possible to control it finishing with setInterval 0 | |
export class AsyncIntervalTimer { | |
private realDelay: number; | |
// eslint-disable-next-line @typescript-eslint/ban-types | |
private fn: Function; | |
private args: Array<any>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const defaultSnapshot = { | |
token: '', | |
myInnerInfo: { login: '', type: '' }, | |
myDisplayInfo: { login: '', type: '' }, | |
loginInfo: { login: '', type: '' }, | |
loginList: [], | |
loading: false, | |
logined: false, | |
} |