If I change it to return Task, since my code should not return anything, what should I return to?
, await void ( , , GetAwaiter).
void Task . , async-, . async void , , , threadpool. Async .
, MainFunctionAsync, , .
public async Task MainFunctionAsync()
{
await DoSomethingAsync();
await DoSomethingMoreAsync();
}
public Task DoSomethingAsync()
{
}
public Task DoSomethingMoreAsync()
{
}
source
share