public Coroutine.Coroutine(Func<Task> taskProducer)
Creates a new Coroutine instance using the supplied arguments.
taskProducerFunc<Task>- Specifies task producer.
This class is used by IBots to create the loop of actions to make the bot work. Pls look at the NullBot exemple to see the exact implementation. This is a complex class that implement the async Task logic of the bot, you shouldent bother to much with it, just implement it like in NullBot and then execute the real bot logic in TaskManager.
Namespace: DreamPoeBot.Loki.Coroutine
public class CoroutineView DPB1 version โpublic Coroutine.Coroutine(Func<Task> taskProducer)
Creates a new Coroutine instance using the supplied arguments.
taskProducerFunc<Task>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.