... | @@ -33,6 +33,7 @@ class CallerInfo |
... | @@ -33,6 +33,7 @@ class CallerInfo |
|
```c#
|
|
```c#
|
|
class AsyncAwaitTest
|
|
class AsyncAwaitTest
|
|
{
|
|
{
|
|
|
|
//async 예약어가 없이 await를 사용할 수 없다.
|
|
private static async void AwaitRead()
|
|
private static async void AwaitRead()
|
|
{
|
|
{
|
|
using (FileStream fs = new FileStream("test.log", FileMode.Open))
|
|
using (FileStream fs = new FileStream("test.log", FileMode.Open))
|
... | | ... | |