DPB2Class · Bots, plugins and tasks

Coroutine

Provides coroutine data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Framework

public class Coroutine
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

24 declared here

Coroutine

MethodLink ↗
public Coroutine.Coroutine(Action action, YieldBase condition, string owner, string name = null, bool autoStart = true)

Creates a new Coroutine instance using the supplied arguments.

Parameters

action
Parameter type: ActionNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies action.

condition

Specifies condition.

owner
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies owner.

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name. Optional; the default is shown in the signature.

autoStart
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies auto start. Optional; the default is shown in the signature.

Coroutine

MethodLink ↗
public Coroutine.Coroutine(Action action, int waitMilliseconds, string owner, string name = null, bool autoStart = true)

Creates a new Coroutine instance using the supplied arguments.

Parameters

action
Parameter type: ActionNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies action.

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

Specifies wait milliseconds.

owner
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies owner.

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name. Optional; the default is shown in the signature.

autoStart
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies auto start. Optional; the default is shown in the signature.

Coroutine

MethodLink ↗
public Coroutine.Coroutine(IEnumerator enumerator, string owner, string name = null, bool autoStart = true)

Creates a new Coroutine instance using the supplied arguments.

Parameters

enumerator
Parameter type: IEnumeratorNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies enumerator.

owner
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies owner.

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name. Optional; the default is shown in the signature.

autoStart
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies auto start. Optional; the default is shown in the signature.

Done

MethodLink ↗
public bool Coroutine.Done(bool force = false)

Calls Done on Coroutine with force and returns bool. Open the return contract below before using the result.

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

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A Boolean result. The member description explains the condition being checked.

GetCopy

MethodLink ↗
public Coroutine Coroutine.GetCopy(Coroutine cor)

Calls GetCopy on Coroutine with cor and returns Coroutine. Open the return contract below before using the result.

Return type: Coroutine
Explore Coroutine → members & methods

Provides coroutine data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

cor

Specifies cor.

Returns: The Coroutine result.

GetEnumerator

MethodLink ↗
public IEnumerator Coroutine.GetEnumerator()

Returns enumerator.

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

Returns: The IEnumerator result.

MoveNext

MethodLink ↗
public bool Coroutine.MoveNext()

Moves next.

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

Returns: A Boolean result. The member description explains the condition being checked.

Pause

MethodLink ↗
public void Coroutine.Pause(bool force = false)

Calls Pause on Coroutine with force. This overload has no return value.

Return type: voidNo return value.

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Resume

MethodLink ↗
public void Coroutine.Resume()

Calls Resume on Coroutine without arguments. This overload has no return value.

Return type: voidNo return value.

UpdateCondtion

MethodLink ↗
public void Coroutine.UpdateCondtion(YieldBase condition)

Updates condtion using the supplied arguments.

Return type: voidNo return value.

Parameters

condition

Specifies condition.

UpdateTicks

MethodLink ↗
public void Coroutine.UpdateTicks(int tick)

Updates ticks using the supplied arguments.

Return type: voidNo return value.

Parameters

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

Specifies tick.

Wait

MethodLink ↗
public IEnumerator Coroutine.Wait()

Calls Wait on Coroutine without arguments and returns IEnumerator. Open the return contract below before using the result.

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

Returns: The IEnumerator result.

Action

PropertyLink ↗
public Action Coroutine.Action { get; }

Reads action on Coroutine as Action. The exact type and accessors are shown below.

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

AutoResume

PropertyLink ↗
public bool Coroutine.AutoResume { get; set; }

Reads or assigns auto resume on Coroutine as bool. The exact type and accessors are shown below.

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

DoWork

PropertyLink ↗
public bool Coroutine.DoWork { get; private set; }

Reads or assigns do work on Coroutine as bool. The exact type and accessors are shown below.

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

IsDone

PropertyLink ↗
public bool Coroutine.IsDone { get; private set; }

Whether this coroutine is done.

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

Name

PropertyLink ↗
public string Coroutine.Name { get; set; }

Reads or assigns name on Coroutine as string. The exact type and accessors are shown below.

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

Owner

PropertyLink ↗
public string Coroutine.Owner { get; private set; }

Reads or assigns owner on Coroutine as string. The exact type and accessors are shown below.

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

Priority

PropertyLink ↗
public CoroutinePriority Coroutine.Priority { get; set; }

Reads or assigns priority on Coroutine as CoroutinePriority. Open the value type below for its members and accepted values.

Value type: CoroutinePriority
Explore CoroutinePriority → members & methods

Named values for coroutine priority. Select a value when an API accepts or returns CoroutinePriority.

Started

PropertyLink ↗
public DateTime Coroutine.Started { get; set; }

Reads or assigns started on Coroutine as DateTime. The exact type and accessors are shown below.

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

ThisIsSimple

PropertyLink ↗
public bool Coroutine.ThisIsSimple { get; }

Reads this is simple on Coroutine as bool. The exact type and accessors are shown below.

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

Ticks

PropertyLink ↗
public long Coroutine.Ticks { get; private set; }

Reads or assigns ticks on Coroutine as long. The exact type and accessors are shown below.

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

TimeoutForAction

PropertyLink ↗
public string Coroutine.TimeoutForAction { get; private set; }

Reads or assigns timeout for action on Coroutine as string. The exact type and accessors are shown below.

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

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.