Skip to content

PromisedQueue

Unofficial

A sequential promise queue that ensures functions execute one at a time.

Import:

import type { PromisedQueue } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface PromisedQueue

Properties

Property Type Description
promise Promise<unknown> The current promise in the queue chain.

Methods

Method Returns Description
queue(fn) Promise<T> Add a function to the queue and return a promise for its result.

Links to this page: