mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-30 12:57:06 +02:00
61 lines
1.0 KiB
Markdown
61 lines
1.0 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [BaseTask](./bitburner.basetask.md)
|
|
|
|
## BaseTask interface
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
interface BaseTask
|
|
```
|
|
|
|
## Properties
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Property
|
|
|
|
|
|
</th><th>
|
|
|
|
Modifiers
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
[nextCompletion](./bitburner.basetask.nextcompletion.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
</td><td>
|
|
|
|
Promise<void>
|
|
|
|
|
|
</td><td>
|
|
|
|
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.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|