Skip to content

Commit 3fec764

Browse files
committed
compile error
1 parent b7144f0 commit 3fec764

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ export abstract class CachedResource<V> {
9797
return lock
9898
}
9999

100+
async releaseLock() {
101+
await globals.globalState.update(this.key, {
102+
...this.readCacheOrDefault(),
103+
locked: false,
104+
})
105+
}
106+
100107
private async updateCache(cache: GlobalStateSchema<any> | undefined, resource: Resource<any>) {
101108
await globals.globalState.update(this.key, {
102109
...(cache ? cache : this.readCacheOrDefault()),

0 commit comments

Comments
 (0)