diff options
author | crupest <crupest@outlook.com> | 2020-08-09 22:04:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-09 22:04:54 +0800 |
commit | d882b22f2e870fa152f72b85cfd520bc16fcd34a (patch) | |
tree | 6767defd30b93f82893e6c1a5fb5cb11c7358adc /Timeline/ClientApp/src/app/data/SyncStatusHub.ts | |
parent | 53214d5aa49fe4a4c85c9a6ebc0941de476d96c5 (diff) | |
download | timeline-d882b22f2e870fa152f72b85cfd520bc16fcd34a.tar.gz timeline-d882b22f2e870fa152f72b85cfd520bc16fcd34a.tar.bz2 timeline-d882b22f2e870fa152f72b85cfd520bc16fcd34a.zip |
Merge sync status into subscription hub.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/SyncStatusHub.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/data/SyncStatusHub.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Timeline/ClientApp/src/app/data/SyncStatusHub.ts b/Timeline/ClientApp/src/app/data/SyncStatusHub.ts deleted file mode 100644 index ed84f056..00000000 --- a/Timeline/ClientApp/src/app/data/SyncStatusHub.ts +++ /dev/null @@ -1,19 +0,0 @@ -export class SyncStatusHub {
- private map = new Map<string, boolean>();
-
- get(key: string): boolean {
- return this.map.get(key) ?? false;
- }
-
- begin(key: string): void {
- this.map.set(key, true);
- }
-
- end(key: string): void {
- this.map.set(key, false);
- }
-}
-
-export const syncStatusHub = new SyncStatusHub();
-
-export default syncStatusHub;
|