Files
bitburner-src/markdown/bitburner.basetask.md
T
2026-04-28 15:39:48 -07:00

1.0 KiB

Home > bitburner > BaseTask

BaseTask interface

Base interface of all tasks.

Signature:

interface BaseTask 

Properties

Property

Modifiers

Type

Description

nextCompletion

Promise<void>

This promise resolves when the task completes or is canceled.

Tasks that do not track progress, such as studying or working for a company, are non-completable, i.e., they continue indefinitely until canceled. The nextCompletion promise of these tasks resolves only when they are canceled.

Among completable tasks, some are repeatable, i.e., they automatically restart after completion. The nextCompletion promise of these tasks resolves on the next completion or when they are canceled.