MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / executeEventFunction

Function executeEventFunction

src/back/util/EventQueue.ts:77–80  ·  view source on GitHub ↗

* Execute an event function. * * @param event Event function to execute. * @returns A promise the resolves when the event function is done executing, * or rejects if it throws an error.

(event: EventFunction)

Source from the content-addressed store, hash-verified

75 * or rejects if it throws an error.
76 */
77async function executeEventFunction(event: EventFunction): Promise<void> {
78 if (typeof event === 'function') { await event(); }
79 else { await Promise.resolve(event); }
80}
81
82/**
83 * Wrap an event function in another event that resolves a promise when done.

Callers 2

executeNextMethod · 0.85
wrappedEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected