Skip to content
Snippets Groups Projects
Commit e60517f5 authored by tamaina's avatar tamaina
Browse files

comment

parent 97696b18
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ export class Storage<T extends StateDef> {
public readonly state = {} as State<T>;
public readonly reactiveState = {} as ReactiveState<T>;
// indexedDB保存を重複させないために簡易的にキューイング
// 簡易的にキューイングして占有ロックとする
private nextIdbJob: Promise<any> = Promise.resolve();
private addIdbSetJob<T>(job: () => Promise<T>) {
const promise = this.nextIdbJob.then(job, e => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment