MCPcopy
hub / github.com/wavetermdev/waveterm / fireAndForget

Function fireAndForget

frontend/util/util.ts:177–181  ·  view source on GitHub ↗

* A wrapper function for running a promise and catching any errors * @param f The promise to run

(f: () => Promise<any>)

Source from the content-addressed store, hash-verified

175 * @param f The promise to run
176 */
177function fireAndForget(f: () => Promise<any>) {
178 f()?.catch((e) => {
179 console.log("fireAndForget error", e);
180 });
181}
182
183const promiseWeakMap = new WeakMap<Promise<any>, ResolvedValue<any>>();
184

Callers 15

getWorkspaceMenuFunction · 0.90
makeFileMenuFunction · 0.90
makeAppMenuItemsFunction · 0.90
makeViewMenuFunction · 0.90
makeAndSetAppMenuFunction · 0.90
emain-menu.tsFile · 0.90
clickFunction · 0.90
constructorMethod · 0.90
emain-window.tsFile · 0.90
registerGlobalHotkeyFunction · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected