Remove ts/services/timers.ts

This commit is contained in:
Fedor Indutny 2021-10-06 14:59:34 -07:00 committed by GitHub
parent 26eabf16a8
commit a537204fc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 38 additions and 144 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { onTimeout } from '../services/timers';
import { MINUTE } from './durations';
class PostLinkExperience {
private hasNotFinishedSync: boolean;
@ -15,9 +15,9 @@ class PostLinkExperience {
// timeout "post link" after 10 minutes in case the syncs don't complete
// in time or are never called.
onTimeout(Date.now() + 60 * 60 * 10 * 1000, () => {
setTimeout(() => {
this.stop();
});
}, 10 * MINUTE);
}
stop() {