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 CoroutineView DPB1 version →

Members and overloads

24 results

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.

actionAction
Specifies action.
conditionYieldBase
Specifies condition.
ownerstring
Specifies owner.
namestring
Specifies name. Optional; the default is shown in the signature.
autoStartbool
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.

actionAction
Specifies action.
waitMillisecondsint
Specifies wait milliseconds.
ownerstring
Specifies owner.
namestring
Specifies name. Optional; the default is shown in the signature.
autoStartbool
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.

enumeratorIEnumerator
Specifies enumerator.
ownerstring
Specifies owner.
namestring
Specifies name. Optional; the default is shown in the signature.
autoStartbool
Specifies auto start. Optional; the default is shown in the signature.

Done

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

Executes the done operation with the supplied arguments.

forcebool
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)

Returns copy using the supplied arguments.

corCoroutine
Specifies cor.

Returns: The Coroutine result.

GetEnumerator

MethodLink ↗
public IEnumerator Coroutine.GetEnumerator()

Returns enumerator.

Returns: The IEnumerator result.

MoveNext

MethodLink ↗
public bool Coroutine.MoveNext()

Moves next.

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

Pause

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

Executes the pause operation with the supplied arguments.

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

Resume

MethodLink ↗
public void Coroutine.Resume()

Executes the resume operation.

UpdateCondtion

MethodLink ↗
public void Coroutine.UpdateCondtion(YieldBase condition)

Updates condtion using the supplied arguments.

conditionYieldBase
Specifies condition.

UpdateTicks

MethodLink ↗
public void Coroutine.UpdateTicks(int tick)

Updates ticks using the supplied arguments.

tickint
Specifies tick.

Wait

MethodLink ↗
public IEnumerator Coroutine.Wait()

Executes the wait operation.

Returns: The IEnumerator result.

Action

PropertyLink ↗
public Action Coroutine.Action { get; }

Gets action for Coroutine.

AutoResume

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

Gets or sets auto resume for Coroutine.

Condition

PropertyLink ↗
public YieldBase Coroutine.Condition { get; private set; }

Gets condition for Coroutine.

DoWork

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

Gets do work for Coroutine.

IsDone

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

Whether this coroutine is done.

Name

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

Gets or sets name for Coroutine.

Owner

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

Gets owner for Coroutine.

Priority

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

Gets or sets priority for Coroutine.

Started

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

Gets or sets started for Coroutine.

ThisIsSimple

PropertyLink ↗
public bool Coroutine.ThisIsSimple { get; }

Gets this is simple for Coroutine.

Ticks

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

Gets ticks for Coroutine.

TimeoutForAction

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

Gets timeout for action for Coroutine.

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