Skip to content

Propose: Add the async Write in IPDFObject #76

Description

@lindexi

public interface IPDFObject
{
/// <summary>
/// Writes the <see cref="IPDFObject"/> to a stream.
/// </summary>
/// <param name="stream">The stream on which the <see cref="IPDFObject"/> should be written.</param>
/// <param name="writer">A <see cref="StreamWriter"/> used to write text to the stream. Always call <see cref="StreamWriter.Flush"/> before returning from this method!</param>
void Write(Stream stream, StreamWriter writer);
}

How about add the WriteAsync to IPDFObject?

    public interface IPDFObject
    {
        /// <summary>
        /// Writes the <see cref="IPDFObject"/> to a stream.
        /// </summary>
        /// <param name="stream">The stream on which the <see cref="IPDFObject"/> should be written.</param>
        /// <param name="writer">A <see cref="StreamWriter"/> used to write text to the stream. Always call <see cref="StreamWriter.Flush"/> before returning from this method!</param>
        void Write(Stream stream, StreamWriter writer);
+       Task WriteAsync(Stream stream, StreamWriter writer);
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions