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

プロパティ名変更

parent e60517f5
No related branches found
No related tags found
No related merge requests found
......@@ -31,13 +31,13 @@ export class Storage<T extends StateDef> {
public readonly reactiveState = {} as ReactiveState<T>;
// 簡易的にキューイングして占有ロックとする
private nextIdbJob: Promise<any> = Promise.resolve();
private currentIdbJob: Promise<any> = Promise.resolve();
private addIdbSetJob<T>(job: () => Promise<T>) {
const promise = this.nextIdbJob.then(job, e => {
const promise = this.currentIdbJob.then(job, e => {
console.error('Pizzax failed to save data to idb!', e);
return job();
});
this.nextIdbJob = promise;
this.currentIdbJob = promise;
return promise;
}
......
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