Why does Task.WaitAll() not block or cause a deadlock here?
问题 In the example below two await calls are used. To gain performance, the sample gets converted Task.WaitAll() instead (not really any faster, but this is just an example). This is code from a library using Sqlite.Net on Android and the method gets called from OnResume() on the main UI thread: public async Task SetupDatabaseAsync() { await CreateTableAsync<Session>(); await CreateTableAsync<Speaker>(); } Here's the alternative: public void SetupDatabaseAsync() { var t1 = CreateTableAsync