5 lines
162 B
C#
5 lines
162 B
C#
async Task DoStuffAsync() {
|
|
DoSomething();
|
|
await someOtherTask;//returns control to caller if someOtherTask is not yet finished.
|
|
DoSomethingElse();
|
|
}
|