Skip to content

Refactor run() to accept generic async streams#8

Open
nikomatsakis wants to merge 1 commit into
zeenix:mainfrom
nikomatsakis:main
Open

Refactor run() to accept generic async streams#8
nikomatsakis wants to merge 1 commit into
zeenix:mainfrom
nikomatsakis:main

Conversation

@nikomatsakis

Copy link
Copy Markdown
  • Add run_with_streams<R, W>() method accepting generic AsyncRead/AsyncWrite streams
  • Keep existing run() method for backward compatibility, delegating to run_with_streams()
  • Enables library usage with custom streams (duplex, Unix sockets, etc.) beyond stdio

- Add run_with_streams<R, W>() method accepting generic AsyncRead/AsyncWrite streams
- Keep existing run() method for backward compatibility, delegating to run_with_streams()
- Enables library usage with custom streams (duplex, Unix sockets, etc.) beyond stdio

Co-authored-by: Claude <claude@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant