mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-31 13:36:41 +00:00
Fix patterns chapter
This commit is contained in:
parent
54f3732787
commit
52671bde02
2 changed files with 1 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
- [Proper Shutdown](./patterns/proper-shutdown.md)
|
- [Proper Shutdown](./patterns/proper-shutdown.md)
|
||||||
- [Background Tasks](./patterns/background-tasks.md)
|
- [Background Tasks](./patterns/background-tasks.md)
|
||||||
- [Testing](./patterns/testing.md)
|
- [Testing](./patterns/testing.md)
|
||||||
- [Collected Small Patterns](./patters/small-patterns.md)
|
- [Collected Small Patterns](./patterns/small-patterns.md)
|
||||||
- [Security practices](./security/index.md)
|
- [Security practices](./security/index.md)
|
||||||
- [Security disclosures and policy](./security/policy.md)
|
- [Security disclosures and policy](./security/policy.md)
|
||||||
- [Glossary](./glossary.md)
|
- [Glossary](./glossary.md)
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
A collection of small, useful patterns.
|
A collection of small, useful patterns.
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
## Splitting streams
|
## Splitting streams
|
||||||
|
|
||||||
`async-std` doesn't provide a `split()` method on `io` handles. Instead, splitting a stream into a read and write half can be done like this:
|
`async-std` doesn't provide a `split()` method on `io` handles. Instead, splitting a stream into a read and write half can be done like this:
|
||||||
|
|
Loading…
Reference in a new issue