So the following code triggers the compiler warning:
"Async function without await operator will run synchronously"
public async Task UpsertMariaDb()
{
IEnumerable<Task> insertTasks = InsertSomethingDb();
IEnumerable<Task> updateTasks = UpdateSomethingDb();
Task.WaitAll(insertTasks.ToArray());
Task.WaitAll(updateTasks.ToArray());
}
My question is the following, is there something very basic I don't understand about async/await or is this just a compiler warning bug because I haven't put an explicit "await"