AsyncDolls.AsyncScript.IoBoundMethod C# (CSharp) Method

IoBoundMethod() static private method

static private IoBoundMethod ( ) : Task
return 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();
            }
        }