Do I always have to "await" for a coroutine to finish?
If so, do I have to make Execute() "async" in the Dev for testing?
The following code crashes EB (ProcessHookManager is enabled and Map Device is highlighted).
If so, do I have to make Execute() "async" in the Dev for testing?
The following code crashes EB (ProcessHookManager is enabled and Map Device is highlighted).
Code:
public class RuntimeCode
{
private static readonly ILog Log = Logger.GetLoggerInstanceForType();
public async void Execute()
{
using(LokiPoe.AcquireFrame())
{
var mapDevice = LokiPoe.ObjectManager.MapDevice;
Log.DebugFormat("returned {0}.", mapDevice);
var iwoerr = await Loki.Bot.v3.Coroutines.InteractWith<NetworkObject>(mapDevice);
Log.DebugFormat("returned {0}", iwoerr);
}
}
}