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

Function wrappedEvent

src/back/util/EventQueue.ts:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 let rejectPromise: (error: any) => void;
94 // Wrap the event in another event
95 const wrappedEvent = async () => {
96 try {
97 await executeEventFunction(event);
98 resolvePromise();
99 } catch (error) {
100 rejectPromise(error);
101 }
102 };
103 // Create the promise to return (and expose its callbacks)
104 const promise = new Promise<void>((resolve, reject) => {
105 resolvePromise = resolve;

Callers

nothing calls this directly

Calls 1

executeEventFunctionFunction · 0.85

Tested by

no test coverage detected