generated from templates/typescript-library
	async example
This commit is contained in:
		| @@ -75,7 +75,7 @@ export interface MemoAsyncStoredResult<T extends AsyncFunc> { | ||||
| 	timer: ReturnType<typeof setTimeout>; | ||||
| } | ||||
|  | ||||
| export function memo<T extends AsyncFunc>(opts: MemoAsyncOptions<T>) : T { | ||||
| export function memo_async<T extends AsyncFunc>(opts: MemoAsyncOptions<T>) : T { | ||||
| 	const get_key = opts.key ?? default_key; | ||||
| 	const storage: Record<string, MemoAsyncStoredResult<T>> = Object.create(null); | ||||
| 	const refreshing: Record<string, MemoAsyncStoredResult<T>> = Object.create(null); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user