Skip to content

Tasks

Official

A task manager.

Import:

import { Tasks } from 'obsidian';

Signature:

export class Tasks

Constructor

new Tasks()

Constructor.

To get the constructor instance, use getTasksConstructor from obsidian-typings/implementations.

Methods

Method Returns Description
add(callback) void Add a task.
addPromise(promise) void Add a promise.
isEmpty() boolean Check if the tasks are empty.
promise() Promise<any> Get the promise.

Links to this page: