Skip to content

chore(core): Align Reader and Writer's API design - #4498

Merged
Xuanwo merged 3 commits into
mainfrom
polish-read-naming
Apr 16, 2024
Merged

Xuanwo merged 3 commits into
mainfrom
polish-read-naming

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Apr 16, 2024 •

Copy link
Copy Markdown
Member

Align the Reader and Writer's API design as mentioned in #4465

  • From into_futures_io_async_read to into_futures_async_read.
  • From into_futures_io_async_write to into_futures_async_write.
  • From into_std_io_read to into_std_read.

The context is clear that we don't need to re-mention io in our API.

  • From into_futures_bytes_stream to into_bytes_stream
  • From into_std_bytes_iterator to into_bytes_iterator

There is only one widely used stream API so far. Remove futures to make API more clear.

@Xuanwo
Xuanwo requested review from PsiACE and suyanhanx as code owners April 16, 2024 09:58
@github-actions
github-actions Bot requested review from oowl and silver-ymz April 16, 2024 09:58
@github-actions github-actions Bot added the releases-note/chore The PR has a title that begins with "chore" or changes other small things that hard to tell label Apr 16, 2024
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
@Xuanwo
Xuanwo requested a review from tisonkun April 16, 2024 10:25
@Xuanwo
Xuanwo merged commit 655a487 into main Apr 16, 2024
@Xuanwo
Xuanwo deleted the polish-read-naming branch April 16, 2024 10:28
@tisonkun tisonkun mentioned this pull request Apr 16, 2024
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/chore The PR has a title that begins with "chore" or changes other small things that hard to tell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants