* A wrapper function for running a promise and catching any errors * @param f The promise to run
(f: () => Promise<any>)
| 175 | * @param f The promise to run |
| 176 | */ |
| 177 | function fireAndForget(f: () => Promise<any>) { |
| 178 | f()?.catch((e) => { |
| 179 | console.log("fireAndForget error", e); |
| 180 | }); |
| 181 | } |
| 182 | |
| 183 | const promiseWeakMap = new WeakMap<Promise<any>, ResolvedValue<any>>(); |
| 184 |
no outgoing calls
no test coverage detected