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