DPB1Interface · 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: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

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.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

Guides using this class

These guides refer to ITask as a whole and may use other members. They are not dedicated examples of the selected member.

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.

DPB1 0.3.29.56 · 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.