mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
プロパティ名変更
This commit is contained in:
parent
e60517f53b
commit
24a2fff929
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user