comment
This commit is contained in:
		
							parent
							
								
									97696b18a6
								
							
						
					
					
						commit
						e60517f53b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -30,7 +30,7 @@ export class Storage<T extends StateDef> {
 | 
				
			||||||
	public readonly state = {} as State<T>;
 | 
						public readonly state = {} as State<T>;
 | 
				
			||||||
	public readonly reactiveState = {} as ReactiveState<T>;
 | 
						public readonly reactiveState = {} as ReactiveState<T>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// indexedDB保存を重複させないために簡易的にキューイング
 | 
						// 簡易的にキューイングして占有ロックとする
 | 
				
			||||||
	private nextIdbJob: Promise<any> = Promise.resolve();
 | 
						private nextIdbJob: Promise<any> = Promise.resolve();
 | 
				
			||||||
	private addIdbSetJob<T>(job: () => Promise<T>) {
 | 
						private addIdbSetJob<T>(job: () => Promise<T>) {
 | 
				
			||||||
		const promise = this.nextIdbJob.then(job, e => {
 | 
							const promise = this.nextIdbJob.then(job, e => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue