didPluginAsyncCleanupsSettle
Awaits every cleanup still in flight for the plugin, bounded by a timeout.
Resolves at once when nothing is pending. Never rejects.
Import:
import { didPluginAsyncCleanupsSettle } from '@mnaoumov/obsidian-lib/plugin/plugin-async-cleanup';Signature:
function didPluginAsyncCleanupsSettle(params: DidPluginAsyncCleanupsSettleParams): Promise<boolean>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
DidPluginAsyncCleanupsSettleParams | The parameters. |
Returns: Promise<boolean> — true if every pending cleanup settled in time, false if the timeout was reached first.
Links to this page: