Writes an array of characters followed by a line terminator asynchronously to the text string or stream.
buffer The character array to write to the text stream. If the character array is null, only the line terminator is written.
A task that represents the asynchronous write operation.
The line terminator is defined by the TextWriter.CoreNewLine field.