MCPcopy
hub / github.com/CodebuffAI/codebuff / yieldToEventLoop

Function yieldToEventLoop

cli/src/utils/yield-to-event-loop.ts:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 * before the next step of an async flow.
5 */
6export const yieldToEventLoop = (): Promise<void> =>
7 new Promise<void>((resolve) => {
8 setTimeout(resolve, 0)
9 })

Callers 2

useSendMessageFunction · 0.90
prepareUserMessageFunction · 0.90

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected