interface Abandoned

What closeWithGrace gave up on, and a promise for those closes finally finishing.

Properties

names: string[]

The keys still pending when the grace expired. Empty when everything settled in time.

settled: Promise<void>

Settles when the abandoned closes do. Already settled when nothing was abandoned.

Usage

import { type Abandoned } from "lib/utils/close-with-grace.ts";