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

MethodReturnsDescription
add(callback)voidAdd a task.
addPromise(promise)voidAdd a promise.
isEmpty()booleanCheck if the tasks are empty.
promise()Promise<any>Get the promise.

Links to this page: