Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
6
export
const
yieldToEventLoop = (): Promise<void> =>
7
new
Promise<void>((resolve) => {
8
setTimeout(resolve, 0)
9
})
Callers
2
useSendMessage
Function · 0.90
prepareUserMessage
Function · 0.90
Calls
1
setTimeout
Function · 0.85
Tested by
no test coverage detected