I am trying to grok how async and await works in C#.
Consider the two snippets below:
var appIdTask = GetAppIdAsync();
var clientSecretTask = GetClientSecretAsync();
var appId = await appIdTask;
var clientSecret = await clientSecretTask;
Execute(appId, clientSecret);
and
var appId = await GetAppIdAsync();
var clientSecret = await GetClientSecretAsync();
Execute(appId, clientSecret);
These two snippets have different implications. Correct?
First one will make the Get calls in parallel whereas the second one will make the calls in serial?
From my understanding, the await keyword on the first call blocks the execution on the second call.