Asynchronously closes any open elements or attributes and puts the writer back in the Start state.
The task that represents the asynchronous WriteEndDocument operation.
This is the asynchronous version of XmlWriter.WriteEndDocument, with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.