Repl.spinner() method
Home > streplts > Repl > spinner
Repl.spinner() method
Section titled “Repl.spinner() method”Shows a spinner. Returns a stop function. Usage: const stop = this.spinner(“Loading…”); await task(); stop();
Signature:
spinner(text: string): () => void;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
text |
string |
Returns:
() => void