I would like to call & await a C# async method from Lua / MoonSharp code.
For example:
1).
async void Test1() {
await Something();
}
2).
async Task Test2() {
await Something();
}
And then calling it from Lua - 1). does not await but continues script execution, and 2). throws ScriptRuntimeException: cannot convert clr type System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult]
MoonSharp.Interpreter.Interop.Converters.ClrToScriptConversions.ObjectToDynValue
exception.
Is there some way to make this work?