Skip to content

addToQueueAndWait

Adds an asynchronous function to be executed after the previous function completes and returns a Promise that resolves when the function completes.

Import:

import { addToQueueAndWait } from 'obsidian-dev-utils/obsidian/queue';

Signature:

function addToQueueAndWait(params: AddToQueueAndWaitParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsAddToQueueAndWaitParamsThe parameters for the function.

Returns: Promise<void>


Links to this page: