DPB2Interface · Bots, plugins and tasks

ITask

Contract for a unit of asynchronous bot work. Implement Run and the inherited lifecycle and messaging members.

Namespace: DreamPoeBot.Loki.Bot

public interface ITask
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here

Run

MethodLink ↗
Task<bool> ITask.Run()

Performs one bounded unit of work when the owning bot runs its TaskManager. Return true when this task handles the turn; return false when idle so lower-priority tasks can run. UntilHandled stops the current pass on the first true result, not the entire bot.

Return type: Task<bool>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: Await to obtain true (turn handled) or false (idle). With UntilHandled, false allows the next eligible task to run.

Inherited members and contracts

0 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.