Module

std/cli/mod.ts>Spinner#stop

The Deno Standard Library
Go to Latest
method Spinner.prototype.stop
import { Spinner } from "https://dotland.deno.dev/std@0.223.0/cli/mod.ts";

Stops the spinner.

Examples

Example 1

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

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

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