Skip to content

Repl.spinner() method

Home > streplts > Repl > spinner

Shows a spinner. Returns a stop function. Usage: const stop = this.spinner(“Loading…”); await task(); stop();

Signature:

spinner(text: string): () => void;

Parameter

Type

Description

text

string

Returns:

() => void