DPB2Class · Bots, plugins and tasks

Coroutines

Asynchronous helpers for timing, interaction and common game actions. Await these helpers within the bot workflow.

Namespace: DreamPoeBot.Loki.Bot

public static class Coroutines
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
Show all members

ReactionMinSleepDelay

PropertyLink ↗
public static int Coroutines.ReactionMinSleepDelay { get; set; }

Get or Set the Min sleep value for ReactionWait.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Inspect the shared interaction timing settings

var latencyFactor = Coroutines.LatencyFactor;
var minimumReactionMs = Coroutines.ReactionMinSleepDelay;
var maximumReactionMs = Coroutines.ReactionMaxSleepDelay;

These are shared timing settings, not proof of action completion. Read them without changing other components' defaults. For a small cancellable wait, follow the AcademyWorkshop stopwatch-and-Yield example. Coroutine helpers belong inside the bot-owned workflow, never Task.Run or async void Tick.

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.