Here
65
is printed at the end as expected. Without await Task.Delay
there is nothing running asynchronously. Replace it with Thread.Sleep
to have issue again, because in this case LongRunningOperationAsync
is actually a synchronous method and it needs to be run with e.g. Task.Run
(for which you await), to have expected behavior.