I have an input array that I need to produce an output that is in the same order. If I run
source.Select((item, index) =>
remoteDb.Where(condition).FirstOrDefaultAsync()
.ContinueWith(result -> /* Manipulate and save to outArray */));
Do I have any guarantee that ContinueWith() will execute in the same order as the source array? Basically, can I save with outArray.append(result), or will I need to use outArray[index] = result to save it in the appropriate order?