Skip to main content
Module

std/cli/spinner.ts>Spinner#stop

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Spinner.prototype.stop
import { Spinner } from "https://deno.land/std@0.222.1/cli/spinner.ts";

Stops the spinner.

Examples

Example 1

import { Spinner } from "https://deno.land/std@0.222.1/cli/spinner.ts";

const spinner = new Spinner({ message: "Loading..." });
spinner.start();

setTimeout(() => {
 spinner.stop();
 console.log("Finished loading!");
}, 3000);