mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Delete avc
This commit is contained in:
parent
05587f4a72
commit
dce68b9707
@ -1,12 +0,0 @@
|
||||
; DO NOT EDIT (unless you know what you are doing)
|
||||
;
|
||||
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = /home/cloud/Code/pinski-plugins/avc
|
||||
branch = master
|
||||
commit = 257d397349f09eae1f5da27b78f4d93993ea5497
|
||||
parent = eb818bf63d0c8389c9997bf9735a75fec023c1c2
|
||||
method = merge
|
||||
cmdver = 0.4.0
|
@ -1,14 +0,0 @@
|
||||
class AsyncValueCache {
|
||||
constructor(fetchNow, callback) {
|
||||
this.callback = callback
|
||||
this.cachedPromise = null
|
||||
if (fetchNow) this.fetch()
|
||||
}
|
||||
|
||||
fetch() {
|
||||
if (this.cachedPromise) return this.cachedPromise
|
||||
else return this.cachedPromise = this.callback()
|
||||
}
|
||||
}
|
||||
|
||||
export {AsyncValueCache}
|
Loading…
Reference in New Issue
Block a user