property PromiseHooks.onSettled
Usage in Deno
```typescript import { type PromiseHooks } from "node:node__v8.d.ts"; ```The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
(settled: Settled) => Function