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

PropertyTypeDescription
promisePromise<unknown>The current promise in the queue chain.

Methods

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

Links to this page: