MCPcopy Create free account
hub / github.com/Cphayim/ombro / startLoading

Function startLoading

packages/cli-chat/src/loading.ts:5–10  ·  view source on GitHub ↗
(message = 'loading...')

Source from the content-addressed store, hash-verified

3let spinner: any
4
5export function startLoading(message = 'loading...') {
6 if (spinner) stopLoading()
7 // 这里不能使用 \n,否则 loading 消息无法撤回
8 spinner = logger.createSpinner(message + '\r')
9 spinner.start()
10}
11
12export function stopLoading() {
13 spinner?.stop()

Callers 2

defaultAnswerFunction · 0.50
streamAnswerFunction · 0.50

Calls 2

startMethod · 0.80
stopLoadingFunction · 0.70

Tested by

no test coverage detected