Writes a subarray of characters to the stream asynchronously.
buffer A character array that contains the data to write.index The character position in the buffer at which to begin reading data.count The maximum number of characters to write.
A task that represents the asynchronous write operation.