variable Shutdown

TaskClass#shutdown settled the Task because the caller asked it to stop.

Shutdown.is(Shutdown()); // true

Type

FailureFactory<"Shutdown", undefined>
& ((
data?: undefined,
options?: FailureBuildOptions
) => FailureOf<"Shutdown", undefined>)

Usage

import { Shutdown } from "lib/task/task.ts";