MCPcopy Create free account
hub / github.com/Snapchat/Valdi / fromTask

Method fromTask

npm_modules/cli/src/utils/LoadingIndicator.ts:15–17  ·  view source on GitHub ↗
(task: PromiseLike<T>)

Source from the content-addressed store, hash-verified

13 constructor(private readonly runnable: () => PromiseLike<T>) {}
14
15 static fromTask<T>(task: PromiseLike<T>): LoadingIndicator<T> {
16 return new LoadingIndicator<T>(() => task);
17 }
18
19 setText(text: string): LoadingIndicator<T> {
20 this.text = text;

Callers 3

runCommandMethod · 0.80
valdiTestFunction · 0.80
valdiAgentCheckFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected