@@ -10,9 +10,9 @@ import { waitUntil } from '../utilities/timeoutUtils'
1010
1111/**
1212 * args:
13- * [ result] : the actual resource type callers want to use
14- * [ locked] : readWriteLock, while the lock is acquired by one process, the other can't access to it until it's released by the previous
15- * [ timestamp] : used for determining the resource is stale or not
13+ * @member result: the actual resource type callers want to use
14+ * @member locked: readWriteLock, while the lock is acquired by one process, the other can't access to it until it's released by the previous
15+ * @member timestamp: used for determining the resource is stale or not
1616 */
1717interface Resource < V > {
1818 result : V | undefined
@@ -35,15 +35,15 @@ function now() {
3535}
3636
3737/**
38- * args :
39- * [ key] : global state key, which is used for globals.globalState#update, #tryGet etc.
40- * [ expirationInMilli] : cache expiration time in milli seconds
41- * [ defaultValue] : default value for the cache if the cache doesn't pre-exist in users' FS
42- * [ waitUntilOption] : waitUntil option for acquire lock
38+ * constructor :
39+ * @param key: global state key, which is used for globals.globalState#update, #tryGet etc.
40+ * @param expirationInMilli: cache expiration time in milli seconds
41+ * @param defaultValue: default value for the cache if the cache doesn't pre-exist in users' FS
42+ * @param waitUntilOption: waitUntil option for acquire lock
4343 *
4444 * methods:
45- * # resourceProvider: implementation needs to implement this method to obtain the latest resource either via network calls or FS read
46- * # getResource: obtain the resource from cache or pull the latest from the service if the cache either expires or doesn't exist
45+ * @method resourceProvider: implementation needs to implement this method to obtain the latest resource either via network calls or FS read
46+ * @method getResource: obtain the resource from cache or pull the latest from the service if the cache either expires or doesn't exist
4747 */
4848export abstract class CachedResource < V > {
4949 constructor (
0 commit comments