Skip to content

Introduce custom initializers to initialize String, Data, and Array from AsyncBufferSequence.Buffer #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iCharlesHu
Copy link
Contributor

@iCharlesHu iCharlesHu commented May 19, 2025

This PR makes working with Buffer easier by introducing convenience initializers on String, Data, and Array to allow easy creation from AsyncBufferSequence.Buffer.

@iCharlesHu iCharlesHu requested a review from parkera May 19, 2025 18:55
@iCharlesHu iCharlesHu marked this pull request as ready for review May 19, 2025 18:55
@iCharlesHu iCharlesHu force-pushed the charles/buffer-improvements branch from 36e0e21 to f261182 Compare May 19, 2025 21:29
@iCharlesHu iCharlesHu changed the title Add .stringValue(), .arrayValue(), and .dataValue() to Buffer Introduce custom initializers to initialize String, Data, and Array from AsyncBufferSequence.Buffer May 19, 2025
@iCharlesHu iCharlesHu force-pushed the charles/buffer-improvements branch from f261182 to 75b804c Compare May 19, 2025 22:38
@@ -267,7 +267,7 @@ public func run<Result, Error: OutputProtocol>(
environment: Environment = .inherit,
workingDirectory: FilePath? = nil,
platformOptions: PlatformOptions = PlatformOptions(),
error: Error,
error: Error = .discarded,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the same change?

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

Successfully merging this pull request may close these issues.

3 participants