MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / withDelay

Function withDelay

webapp/_webapp/src/views/devtools/index.tsx:122–125  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

120 };
121 // Generic delay handler
122 const withDelay = (fn: () => void) => {
123 if (preparingDelay > 0) setTimeout(fn, preparingDelay * 1000);
124 else fn();
125 };
126 // StreamingMessage add various message types
127 const handleAddStreamingUserMessage = () => {
128 const newMessage = createUserMessage(randomUUID(), "User Message Preparing", {

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected