AsyncDolls.AsyncScript.IoBoundMethod C# (CSharp) 메소드

IoBoundMethod() 정적인 개인적인 메소드

static private IoBoundMethod ( ) : Task
리턴 Task
        static async Task IoBoundMethod()
        {
            using (var stream = new FileStream(".\\IoBoundMethod.txt", FileMode.OpenOrCreate))
            using (var writer = new StreamWriter(stream))
            {
                await writer.WriteLineAsync("42");
                writer.Close();
                stream.Close();
            }
        }